Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Determines whether an integer is prime.
- https://en.wikipedia.org/wiki/Primality_test.
- http://primes.utm.edu/index.html
- CAVEAT: it doesn't determine the prime-factors of composite numbers, just that they exist.
- data Algorithm factorisationAlgorithm
- = AKS factorisationAlgorithm
- | MillerRabin
Types
Data-types
data Algorithm factorisationAlgorithm Source #
The algorithms by which primality-testing has been implemented.
AKS factorisationAlgorithm | |
MillerRabin | https://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test. |
Eq factorisationAlgorithm => Eq (Algorithm factorisationAlgorithm) Source # | |
Read factorisationAlgorithm => Read (Algorithm factorisationAlgorithm) Source # | |
Show factorisationAlgorithm => Show (Algorithm factorisationAlgorithm) Source # | |
Default (Algorithm factorisationAlgorithm) Source # | |
Algorithmic factorisationAlgorithm => Algorithmic (Algorithm factorisationAlgorithm) Source # | |