/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/importFormalConjecturesUtil
Number of primes $p$ such that $2^n \le p \le 2^n + \mathrm{prime}(n)$
The sequence $a(n)$ counts the number of primes $p$ in the interval $[2^n, 2^n + p_n]$,
where $p_n$ is the $n$-th prime ($p_1 = 2, p_2 = 3, \dots$):
$$a(n) = |{p \text{ prime} \mid 2^n \le p \le 2^n + p_n}|$$
for $n \ge 1$, and $a(0) = 0$.
For any $n > 0$, is there always at least one prime $p$ such that
$2^n \le p \le 2^n + \mathrm{prime}(n)$?
(checked up to $n = 250$). In this case, that would be stronger than the Schinzel conjecture:
"for $m > 1$ there's at least one prime $p$ such that $m \le p \le m + \log(m)^2$" since,
for $n > 2$, $\mathrm{prime}(n) < \log(2^n)^2 = n^2 \log(2)$.