How to find prime numbers?

1 次查看(过去 30 天)
Grace
Grace 2014-10-4
回答: Dave 2014-10-4
Hi,
primes(25)
gives me the prime numbers that are less or equal to 25. What if i want to find primes numbers that are greater than 25 but less than 50?

采纳的回答

Dave
Dave 2014-10-4
Hi,
A=primes(50); A(length(primes(25))+1:end)
Dave

更多回答(0 个)

类别

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