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

2 次查看(过去 30 天)
help me to find this

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Discrete Math 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by