#1601. 素数个数(函数求解)

素数个数(函数求解)

Description


编程求2~n(n为大于2的正整数)中有多少个素数。


Input Format

输入n(2≤n≤50000)。

Output Format

素数个数。
10
4

Source

四学阶