1204. Count primes

时间限制 6000 ms   内存限制 66 MB

Easy question! Calculate how many primes between [1...n]!

输入数据

Each line contain one integer n(1 <= n <= 1e11).Process to end of file.

输出数据

For each case, output the number of primes in interval [1...n]

样例输入

复制
2
3
10
 \n
 \n
  \n

样例输出

复制
1
2
4
 \n
 \n
 \n

提交

请先 登录

© 2024 FAQs Contact About