primecount-5.0
I have finally implemented Xavier Gourdon's prime counting algorithm! Xavier Gourdon's algorithm is an improved version of the Deleglise-Rivat algorithm. According to my benchmarks Gourdon's algorithm runs up to 2x faster than the Deleglise-Rivat algorithm.
src/gourdon
: Implementation of Xavier Gourdon's algorithm.LoadBalancer.cpp
: Updated for Gourdon's algorithm.primecount.cpp
: Updated for Gourdon's algorithm.print.cpp
: Updated for Gourdon's algorithm.generate.cpp
: Generate array with largest prime factors.test.cpp
: Test Gourdon's algorithm.README.md
: Update benchmarks.