-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Mathematics utilities for Haskell
--
@package euler
@version 0.4.0
module Numeric.Euler.Primes
-- | The isPrime function checks whether a number a is
-- prime by successively checking the remainder of the integer division
-- with all numbers up to a-1.
isPrime :: Integral a => a -> Bool
-- | The trialAndDivision function calculates prime numbers up to a
-- certain limit by using the traditional (and very inneficient) trial
-- and division method.
trialAndDivision :: Int -> [Int]
-- | This is a naïve implementation of the Sieve of Erastothenes.
erastothenes :: Int -> [Int]
-- | An implementation of the Sieve of Sundaram.
sundaram :: Int -> [Int]
-- | An implementation of the sieve of Atkin.
atkin :: Int -> [(Int, Int)]