how to list first 50 prime number after 229 in 10 x5 matrix

2 visualizzazioni (ultimi 30 giorni)
help me to find this

Risposte (1)

Fangjun Jiang
Fangjun Jiang il 10 Dic 2020
a=primes(1000);
b=a(a>229);
c=reshape(b(1:50),10,5)

Categorie

Scopri di più su Discrete Math in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by