OFFSET
1,1
COMMENTS
a(1)=least prime of distance 1 from nearest prime.
if n>1 a(n)=least prime of distance 2n-2 from nearest prime.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..191 (first 65 terms from Daniel Lignon)
Abhimanyu Kumar and Anuraag Saxena, Insulated primes, arXiv:2011.14210 [math.NT], 2020. Mentions this sequence. See also Notes Num. Theor. Disc. Math. (2024) Vol. 30, No. 3, 602-612.
MATHEMATICA
NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; a = Table[0, {35}]; p = 2; q = 3; k = 1; Do[r = NextPrim[q]; m = Min[r - q, q - p]/2; If[m < 35 && a[[m]] == 0, a[[m]] = q]; p = q; q = r, {n, 1, 235000}]
Join[{2}, Transpose[Flatten[Table[Select[Partition[Prime[ Range[ 1000000]], 3, 1], Min[ Differences[#]] == 2n&, 1], {n, 40}], 1]][[2]]](* Harvey P. Dale, Nov 17 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(36)-a(65) from Daniel Lignon, Aug 07 2015
STATUS
approved