[Haskell-beginners] Primes calculation

Daniel Fischer daniel.is.fischer at web.de
Sat Mar 13 07:47:38 EST 2010


Am Samstag 13 März 2010 10:55:59 schrieb Ozgur Akgun:
> Yes, the function fails for [10..30]. But do you ever read the
> explanations?
>

You probably should have chosen another signature for primes,

primes n = primesWRT [2 .. n] []

, to avoid the misunderstandings.



More information about the Beginners mailing list