I\'m new to Haskell, and I\'m trying a bit:
isPrime :: Integer->Bool isPrime x = ([] == [y | y<-[2..floor (sqrt x)], mod x y == 0])
I
Regarding the second point, it stops, for example:
[] == [x | x <- [1..]]
Returns False
False