OFFSET
1,2
COMMENTS
The sequence is apparently infinite.
LINKS
Zak Seidov, Table of n, a(n) for n = 1..2000
EXAMPLE
a(2000) = 19907242 because p = prime(19907242) = 371756971, q = prime(19907242 + 2000) = 371795461, and between p anq q there is no square: (19281^2 = 371756961) < p and (19282^2 = 371795524) > q.
MATHEMATICA
m1 = 1; s = {}; Do[Do[If[Ceiling[Sqrt[Prime[m]]]^2 > Prime[m + k], AppendTo[s, m]; m1 = m; Break[]], {m, m1, 10^6}], {k, 60}]; s
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 16 2013
STATUS
approved