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

2 vues (au cours des 30 derniers jours)
nassnnf
nassnnf le 10 Déc 2020
Commenté : Rik le 10 Déc 2020
help me to find this

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 10 Déc 2020
a=primes(1000);
b=a(a>229);
c=reshape(b(1:50),10,5)
  1 commentaire
Rik
Rik le 10 Déc 2020
I think I've seen this exact homework question earlier this week.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Discrete Math dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by