Commits

dafis  committed 3d5a545

Export counting primes and nthPrime

  • Participants
  • Parent commits 5a7af0a

Comments (0)

Files changed (1)

File Math/NumberTheory/Primes/Counting.hs

+-- |
+-- Module:      Math.NumberTheory.Primes.Counting
+-- Copyright:   (c) 2011 Daniel Fischer
+-- Licence:     MIT
+-- Maintainer:  Daniel Fischer <daniel.is.fischer@googlemail.com>
+-- Stability:   Provisional
+-- Portability: non-portable
+--
+-- Number of primes not exceeding @n@, @&#960;(n)@, and @n@-th prime; also fast, but
+-- reasonably accurate approximations to these.
+module Math.NumberTheory.Primes.Counting
+    ( -- * Exact functions
+      primeCount
+    , nthPrime
+      -- * Approximations
+    , approxPrimeCount
+    , nthPrimeApprox
+    ) where
+
+import Math.NumberTheory.Primes.Counting.Impl
+import Math.NumberTheory.Primes.Counting.Approximate