Count of primes ≤ 10^12
Hello codeforces,I'm trying to solve a problem on acmp, in this problem I only need to count the number of primes up to 10^12,do you know some algorithms to solve it?
Codeforces Round 1098 Solution Discussion