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

1 view (last 30 days)
help me to find this

Answers (1)

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

Categories

Find more on Discrete Math in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!