Fast C++ library for counting primes