How to find prime numbers?

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?

 Risposta accettata

Dave
Dave il 4 Ott 2014

0 voti

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

Più risposte (0)

Categorie

Scopri di più su Elementary Math in Centro assistenza e File Exchange

Richiesto:

il 4 Ott 2014

Risposto:

il 4 Ott 2014

Community Treasure Hunt

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

Start Hunting!

Translated by