Name:
Anonymous
2007-04-15 11:11
ID:00E9fssW
|code]isPrime x = (filter (0 ==) (map (mod x) [2..x-1])) == [][/code]
Name:
Anonymous
2007-05-15 15:38
ID:fB6+u2Vv
>>40
I think it's because if-then-else looks nice than any real reason. Reasonable name for your function there could be ifte.