定义 $P_i$ 为第 $i$ 个素数。
求满足 $x = \prod_{i=l}^{r} P_i = 2^k P_{r+1} - 1$ 的解 $x$ 的数量,其中 $l, r, k \in \mathbb{N}^+$, $1 \le l \le r$,且 $x \le n$。
输入包含一个整数 $n$ ($1 \le n \le 10^{18}$)。
输出一个整数,表示小于或等于 $n$ 的解的数量。
样例
输入格式 1
100
输出格式 1
0
定义 $P_i$ 为第 $i$ 个素数。
求满足 $x = \prod_{i=l}^{r} P_i = 2^k P_{r+1} - 1$ 的解 $x$ 的数量,其中 $l, r, k \in \mathbb{N}^+$, $1 \le l \le r$,且 $x \le n$。
输入包含一个整数 $n$ ($1 \le n \le 10^{18}$)。
输出一个整数,表示小于或等于 $n$ 的解的数量。
100
0
The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.
This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.
If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.
Guidelines: