Copyright | Copyright (C) 2023 Yoo Chung |
---|---|
License | GPL-3.0-or-later |
Maintainer | dev@chungyc.org |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Some solutions to Problems.P31 of Ninety-Nine Haskell Problems.
Documentation
isPrime :: Integral a => a -> Bool Source #
Determine whether a given integer number is prime.
Checks whether the integer is even or if there is a divisor among odd integers not greater than its square root.