Prime Numbers for Haskell
Haskell
Switch branches/tags
Clone or download
Sebastian Fischer
Sebastian Fischer allow arbitrary (and return for non-positive) integers as argument of…
… . fixed by ahammar.
Latest commit c790609 Apr 29, 2011

README

This Haskell library provides an efficient lazy wheel sieve for prime
generation inspired by "Lazy wheel sieves and spirals of primes" [1]
by Colin Runciman and "The Genuine Sieve of Eratosthenes" [2] by
Melissa O'Neil.

[1]: <http://www.cs.york.ac.uk/ftpdir/pub/colin/jfp97lw.ps.gz>
[2]: <http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf>