#abc250d. D - 250-like Number
D - 250-like Number
Score : points
问题描述
让我们认为一个整数 如果满足以下条件,则称其“类似于 250”:
- 将 表示为 ,其中 和 为小于 的质数。
在不大于 的整数中有多少个是“类似于 250”的?
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Let us regard an integer as "similar to " if the following condition is satisfied:
- is represented as with primes .
How many integers less than or equal to are "similar to "?
Constraints
- is an integer between and (inclusive)
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
Sample Input 1
250
Sample Output 1
2
- is "similar to ".
- is "similar to ".
The two integers above are all the integers "similar to ".
Sample Input 2
1
Sample Output 2
0
Sample Input 3
123456789012345
Sample Output 3
226863
update @ 2024/3/10 10:41:11