Borrar filtros
Borrar filtros

How to find prime numbers?

3 visualizaciones (últimos 30 días)
Grace
Grace el 4 de Oct. de 2014
Respondida: Dave el 4 de Oct. de 2014
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?

Respuesta aceptada

Dave
Dave el 4 de Oct. de 2014
Hi,
A=primes(50); A(length(primes(25))+1:end)
Dave

Más respuestas (0)

Categorías

Más información sobre Discrete Math en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by