[Haskell-cafe] Re: FASTER primes (was: Re: Code and Perf. Data for Prime Finders (was: Genuine Eratosthenes sieve))

Will Ness will_n48 at yahoo.com
Mon Dec 28 22:49:34 EST 2009


Will Ness <will_n48 <at> yahoo.com> writes:

> 
> 
>   wheelSums  = roll 0 wdiffs
>   roll       = scanl (+)
>   wheel      = wdiffs ++ wheel
>   wdiffs     = 2:4:2:4:6:2:6:4:2:4:6:6:2:6:4:2:6:4:6:8:4:2:4:2:
>                4:8:6:4:6:2:4:6:2:6:6:4:2:4:6:2:6:4:2:4:2:10:2:10:wdiffs
> 

Apparently that works too, but I meant it to be:

   wdiffs     = 2:4:2:4:6:2:6:4:2:4:6:6:2:6:4:2:6:4:6:8:4:2:4:2:
                4:8:6:4:6:2:4:6:2:6:6:4:2:4:6:2:6:4:2:4:2:10:2:10:[]


:)




More information about the Haskell-Cafe mailing list