[pyar] Numeros primos

Claudio Freire klaussfreire en gmail.com
Vie Nov 25 11:38:09 ART 2011


2011/11/25 Adrian Roldan <roldanadrian en gmail.com>:
> primos_calculados = calcula_primos()
> for l in range (100):
>     print primos_calculados.next(),

import itertools
for p in itertools.islice(calcula_primos(), 100):
   print p



More information about the pyar mailing list