factory-0.2.1.1: Rational arithmetic in an irrational world.

Safe HaskellNone
LanguageHaskell98

Factory.Math.Implementations.Primes.SieveOfAtkin

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
CAVEAT
The Int-specialisation is implemented by a rewrite-rule, which is very fragile.

Synopsis

Types

Data-types

Constants

Functions

sieveOfAtkin Source

Arguments

:: (NFData i, Ix i, Integral i) 
=> NPrimes

Other implementations effectively use a hard-coded value either 2 or 3, but 6 seems better.

-> i

The maximum prime required.

-> [i]

The bounded list of primes.