How to find prime numbers?

8 ビュー (過去 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 Center および File ExchangeDiscrete Math についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by