Safe Haskell | Safe-Inferred |
---|---|

Language | Haskell98 |

`AUTHOR`

- Dr. Alistair Ward
`DESCRIPTION`

- Exports a common interface for implementations of
*prime-number*generators.

- class Algorithmic algorithm where
- primorial :: (Algorithmic algorithm, NFData i, Ix i, Integral i) => algorithm -> [i]
- mersenneNumbers :: (Algorithmic algorithm, Integral i) => algorithm -> [i]

# Types-classes

# Functions

primorial :: (Algorithmic algorithm, NFData i, Ix i, Integral i) => algorithm -> [i] Source

- Returns the constant list, defining the
*Primorial*. - http://en.wikipedia.org/wiki/Primorial.
- http://mathworld.wolfram.com/Primorial.html.

mersenneNumbers :: (Algorithmic algorithm, Integral i) => algorithm -> [i] Source

- Returns the constant ordered infinite list of
*Mersenne numbers*. - Only the subset composed from a prime exponent is returned; which is a strict superset of the
*Mersenne Primes*. - http://en.wikipedia.org/wiki/Mersenne_prime.
- http://mathworld.wolfram.com/MersenneNumber.html