#P0118. 素数个数
素数个数
Description
求 中素数的个数。
Format
Input
一行一个整数 。
Output
一行一个整数,表示素数的个数。
Samples
10
4
Limitation
警告:请使用线性筛解决问题。
Related
In following contests:
求 1,2,⋯,N 中素数的个数。
一行一个整数 N。
一行一个整数,表示素数的个数。
10
4
1≤N≤108 警告:请使用线性筛解决问题。
In following contests:
By signing up a 启智 | CDEZ OJ universal account, you can submit code and join discussions in all online judging services provided by us.