OFFSET
1,1
COMMENTS
This is roughly a search for at least three successive zeros in A048614.
LINKS
Robert Israel, Table of n, a(n) for n = 1..1000
EXAMPLE
The twin prime 9433 is in the sequence because it is in the middle of the list of 7 successive primes 9419, 9421, 9431, 9433, 9437, 9439, 9461, of which each is a member of a twin prime pair.
MAPLE
L:= [seq(ithprime(i), i=1..8)]: Flags:= [false, true$6]: count:= 0: R:= NULL:
while count < 40 do
L:= [seq(L[i], i=2..8), nextprime(L[8])];
Flags:= [seq(Flags[i], i=2..7), (L[7]-L[6]=2) or (L[8]-L[7]=2)];
if Flags = [true$7] then R:= R, L[4]; count:= count+1; fi
od:
R; # Robert Israel, Mar 05 2025
MATHEMATICA
tp7Q[lst_]:=Total[If[PrimeQ[#+2]||PrimeQ[#-2], 1, 0]&/@lst]==7; Select[Partition[Prime[ Range[ 160000]], 7, 1], tp7Q][[;; , 4]] (* Harvey P. Dale, Oct 22 2023 *)
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Irina Gerasimova, Jun 30 2013
STATUS
approved