OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
PrimeNext[n_]:=Module[{k}, k=n+1; While[ !PrimeQ[k], k++ ]; k]; PrimePrev[n_]:=Module[{k}, k=n-1; While[ !PrimeQ[k], k-- ]; k]; lst={}; Do[p=Prime[n]; If[ !PrimeQ[p-2]&&!PrimeQ[PrimePrev[p]-2]&&!PrimeQ[p+2]&&!PrimeQ[PrimeNext[p]+2], AppendTo[lst, p]], {n, 6!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jul 21 2009 *)
PROG
(Magma) f:=func<p|NextPrime(p)>; g:=func<p|PreviousPrime(p)>; [p: p in PrimesInInterval(5, 1000)| not IsPrime(f(p)-2) and not IsPrime(g(p)+2) and not IsPrime(f(f(p))-2) and not IsPrime(g(g(p))+2)]; // Marius A. Burtea, Jan 02 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Aug 06 2007
EXTENSIONS
Some terms corrected by Vladimir Joseph Stephan Orlovsky, Jul 21 2009
STATUS
approved