Math.NumberTheory.Prime
Documentation
isPrime :: Integer -> BoolSource
Is this number prime? The algorithm consists of using trial division to test for very small factors, followed if necessary by the Miller-Rabin probabilistic test.
HaskellForMaths-0.4.1: Combinatorics, group theory, commutative algebra, non-commutative algebra
Math.NumberTheory.Prime
isPrime :: Integer -> BoolSource
Is this number prime? The algorithm consists of using trial division to test for very small factors, followed if necessary by the Miller-Rabin probabilistic test.