Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Jan 8, 2024
1 parent 9275650 commit b777c81
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/nthPrimeApprox.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
///
/// @file nthPrimeApprox.cpp
/// This file contains implementations of the logarithmic
/// integral and the Riemann R function which are very
/// accurate approximations of PrimePi(x). Please note that
/// most of this code has been copied from the primecount
/// project: https://github.com/kimwalisch/primecount
///
/// Note that while the Riemann R function is extremely
/// accurate it is much slower than other simpler PrimePi(x)
/// approximations. When speed matters, e.g. for allocating
/// a vector of primes, we avoid using the functions defined
/// in this file. Currently, the functions defined in this
/// file are only used in nthPrime.cpp where accuracy is of
/// utmost importance.
///
/// Copyright (C) 2024 Kim Walisch, <[email protected]>
///
Expand Down

0 comments on commit b777c81

Please sign in to comment.