A number is called almost prime if it has exactly two distinct prime divisors. For example, numbers 6, 18, 24 are almost prime, while 4, 8, 9, 42 are not. Find the amount of almost prime numbers which are between 1 and , inclusive.
一个数如果恰好有两个不同质因子,那它被叫做几乎是质数的数。例如:6,18,24就是几乎是质数的数,而4,8,9,42不是,请你找出 到 中几乎是质数的数有多少个。
6,18,24
4,8,9,42
输入仅包含一个整数 ()。
输出 到 中几乎是质数的数的数量。
样例输入
10
样例输出
2