3 ms·
Yes, that's certainly an issue. In fact the "Try it" box also seems to work differently from the standard haskell live interpreter, in which you'd be able to de
by thomasahle 12y ago
Yes, that's certainly an issue. In fact the "Try it" box also seems to work differently from the standard haskell live interpreter, in which you'd be able to define functions by prefixing them with 'let '.
If you still want to try it out, say
let sieve (p:xs) = p : sieve [x | x <- xs, x `mod` p /= 0] in sieve[2..]