#8289. 【入门】筛素数

【入门】筛素数

Description

输入一个整数n,请问1~n范围内有多少个素数?

Input Format

一个整数n(n≤106

Output Format

输出n范围内素数的个数。

20
8

Source

筛素数