Remarkable results with psyco and sieve of Eratosthenes

Klaus Alexander Seistrup klaus at seistrup.dk
Thu Nov 30 09:04:39 EST 2006


Pekka Karjalainen wrote:

> You can omit the call to math.sqrt if you test this instead.
>
>     y*y > x
>
> in place of if y > maxfact: .

Or use

	sqrt = lambda x: x ** .5

Cheers,

-- 
Klaus Alexander Seistrup
http://klaus.seistrup.dk/



More information about the Python-list mailing list