OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
The left prime neighbors 29, 31 of prime 37 and the right prime neighbors 41, 43 of 37 form twin prime pairs, and the sum 29+31+37+41+43 = 181 is prime. Hence 37 is in the sequence.
MATHEMATICA
Select[Partition[Prime[Range[8000]], 5, 1], #[[2]]-#[[1]]==#[[5]]-#[[4]] == 2 && PrimeQ[Total[#]]&][[All, 3]] (* Harvey P. Dale, Oct 01 2017 *)
PROG
(Magma) P:= PrimesUpTo(71000); [ n: k in [3..#P-2] | p2-p1 eq 2 and q2-q1 eq 2 and IsPrime(p1+p2+n+q1+q2) where p1 is P[k-2] where p2 is P[k-1] where n is P[k] where q1 is P[k+1] where q2 is P[k+2] ]; // Klaus Brockhaus, Dec 04 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 08 2008
EXTENSIONS
More terms from Vladimir Joseph Stephan Orlovsky, Dec 17 2008
Edited by Klaus Brockhaus, Dec 04 2009
STATUS
approved