OFFSET
1,3
COMMENTS
a(k) corresponds to the k-th term in the isolated prime sequence A007510 or A134797. a(1) corresponds to 23. a(2) corresponds to 37. a(3) corresponds to 47 and 53. - Enrique Navarrete, Jan 28 2017
Lengths of the runs of consecutive integers in A176656. - R. J. Mathar, Feb 19 2017
LINKS
Ruud H.G. van Tol, Table of n, a(n) for n = 1..10000
Chris K. Caldwell, The PrimePages.
MATHEMATICA
Select[Differences[Select[Range[1000], AnyTrue[Prime[#] + {2, -2}, PrimeQ] &]] - 1, Positive] (* Paolo Xausa, Jan 18 2026 *)
PROG
(PARI) lista(nn)= my(v=vector(nn), p=3, q, i=1, j=0, k=1, n=0); while(isprime(p-2) || isprime(p+2), p=nextprime(p+1)); q=nextprime(p+1); forprime(r=q+2, oo, i++; if(q-p>2 && r-q>2, if(i==(j+1), k++, v[n++]=k; n<nn||break; k=1); j=i); p=q; q=r); v; \\ Ruud H.G. van Tol, Jan 08 2026
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Aug 23 2007
STATUS
approved
