OFFSET
0,2
COMMENTS
Equivalently, the smallest integer k such that the number of primes between k and k+log(k)^2, exclusive, is n.
Up to a(37) = 167540101, the last known term, this sequence is monotonic.
REFERENCES
Richard K. Guy, Unsolved Problems in Number Theory, 3rd Edition, Springer, 2004, Section A2, Primes connected with factorials, p. 11.
EXAMPLE
In the interval ]9; 9+log(9)^2[ = ]9; 13.827...[, there are two primes 11 and 13 and this is the first such interval with two primes, hence a(2) = 9.
MATHEMATICA
f[n_] := Count[Range[n + 1, n + Log[n]^2], _?PrimeQ]; seq[len_, max_] := Module[{s = Table[0, {len}], c = 0, n = 1, i}, While[c < len && n < max, i = f[n] + 1; If[i <= len && s[[i]] == 0, c++; s[[i]] = n]; n++]; s]; seq[15, 10^4] (* Amiram Eldar, Jun 08 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Bernard Schott, Jun 08 2022
EXTENSIONS
More terms from Amiram Eldar, Jun 08 2022
STATUS
approved