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
isPrime 32
PS your isPrime implementation is not the best implementation!