OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
521 is a term since (521, 523) are twin primes and
521 - 2 = 519 (3*173), 523+ 2 = 525 (3*5*7),
521 - 4 = 517 (11*43), 523+ 4 = 527 (17*31),
521 - 6 = 515 (5*103), 523+ 6 = 529 (23*23),
521 - 8 = 513 (3*3*3*19), 523+ 8 = 531 (3*3*59),
521 -10 = 511 (7*73), 523+10 = 533 (13*41).
MATHEMATICA
q=10; s=""; For[i=1, i<10^2*5, n=Prime[i]; m=n+2; If[PrimeQ[m], a=0; For[j=2, j<=q, If[PrimeQ[n-j]||PrimeQ[m+j], a=1; Break[]]; j=j+2]; If[a==0, s=s<>ToString[n]<>", "]]; i++ ]; Print[s]
PROG
(Magma) [p:p in PrimesInInterval(3, 20000)|IsPrime(p+2) and p-PreviousPrime(p) gt 10 and NextPrime(p+2)-p-2 gt 10]; // Marius A. Burtea, Dec 22 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 02 2008
EXTENSIONS
More terms from Amiram Eldar, Dec 22 2019
STATUS
approved