-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9275650
commit b777c81
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
/// | ||
|