OFFSET
1,1
LINKS
Arkadiusz Wesolowski, Table of n, a(n) for n = 1..10000
EXAMPLE
These are non-twin primes sandwiched between at least 2 pairs of twins on each side. The first number in the sequence is 1039 (sandwiched between 1019,1021,1031,1033 and 1049,1051,1061,1063).
MAPLE
Primes:= select(isprime, [seq(i, i=3..6*10^6, 2)]):
good:= select(t -> Primes[t-3]-Primes[t-4]=2 and Primes[t-1]-Primes[t-2]=2 and Primes[t+2]-Primes[t+1]=2 and Primes[t+4]-Primes[t+3]=2, [$5..nops(Primes)-4]):
Primes[good]; # Robert Israel, May 13 2016
MATHEMATICA
dltpQ[{a_, b_, c_, d_, e_, f_, g_, h_, i_}]:=b-a==d-c==g-f==i-h==2; Transpose[ Select[ Partition[Prime[Range[410000]], 9, 1], dltpQ]][[5]] (* Harvey P. Dale, May 14 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Neil Fernandez, Mar 23 2002
EXTENSIONS
More terms from Arkadiusz Wesolowski, May 08 2012
STATUS
approved