Answers for "check if number is prime haskell"

1

check if number is prime haskell

isPrime k = length [ x | x <- [2..k], k `mod` x == 0] == 1
Posted by: Guest on April-26-2021

Code answers related to "check if number is prime haskell"

Browse Popular Code Answers by Language