[Haskell-cafe] Prime numbers
Jens Fisseler
jens.fisseler at FernUni-Hagen.de
Tue Dec 20 11:18:15 EST 2005
Hi Daniel!
You just have to change the arguments of the 'mod'-function:
old: divides a b = (mod a b == 0)
new: divides a b = (mod b a == 0)
Regards,
Jens
More information about the Haskell-Cafe
mailing list