OFFSET
0,1
COMMENTS
Erdos and Suranyi call these reclusive primes and prove that such a prime exists for all n. Except for a(0), the record values are in A023186.
REFERENCES
Paul Erdős and Janos Suranyi, Topics in the theory of numbers, Springer, 2003.
EXAMPLE
a(3)=53 because the adjacent primes 47 and 59 are at distance 6 and all smaller primes have a closer distance.
MATHEMATICA
k=2; Table[While[Prime[k]-Prime[k-1]<2n || Prime[k+1]-Prime[k]<2n, k++ ]; Prime[k], {n, 0, 40}]
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Jul 21 2006
STATUS
approved