18 Dec
2000
18 Dec
'00
12:24 a.m.
On Sun 17 Dec, Adrian Hey wrote:
You can use a variation of this algorithm with lazy lists..
primes = 2:(get_primes [3,5..]) get_primes (x:xs) = x:(get_primes (strike (x+x) (x*x) xs)) ^^^ Whoops,_____________________________________________|
32 bit Ints may cause trouble here :-) Regards -- Adrian Hey