Hello codeforces,I'm trying to solve a [problem](https://acmp.ru/asp/do/index.asp?main=task&id_course=5&id_section=48&id_topic=402&id_problem=2516) 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?



