factory-0.3.0.0: Rational arithmetic in an irrational world.

Safe HaskellSafe
LanguageHaskell2010

Factory.Math.Primes

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Exports a common interface for implementations of prime-number generators.

Synopsis

Type-classes

class Algorithmic algorithm where Source #

Defines the methods expected of a prime-number generator.

Minimal complete definition

primes

Methods

primes :: (NFData i, Ix i, Integral i) => algorithm -> [i] Source #

Instances

Functions

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

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