OFFSET
1,1
LINKS
Vasily Danilov, Table of n, a(n) for n = 1..10000, a(27)-a(41), a(112), a(227)-a(253) from Natalia Makarova, remaining terms from Vasily Danilov and Dmitry Petukhov.
Randall Rathbun, A study of n-twin_prime clusters among prime numbers, Posting to Number Theory List, Nov 19 1998.
MATHEMATICA
fQ[n_] := Block[{k = 6}, And[NextPrime[n, -1] - NextPrime[n, -2] != 2, NextPrime[n, 2 k + 1] - NextPrime[n, 2 k] != 2, AllTrue[NextPrime[n, # + 1] - NextPrime[n, #] & /@ (Range[0, 2 k - 1, 2]), # == 2 &]]]; Select[Prime@ Range[10^9], fQ] (* Michael De Vlieger, May 09 2015, Version 10 *)
PROG
(PARI) isok(p) = {if (! isprime(p-2) && isprime(p+2), for (k=2, 6, my(q = nextprime(p+3)); if (! isprime(q+2), return (0)); p = q+2; ); q = nextprime(p+3); if (isprime(q+2), return (0)); return (1); ); return (0); } \\ Michel Marcus, Dec 06 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(11)-a(17) from Jud McCranie, Sep 16 2003
Offset corrected by Arkadiusz Wesolowski, May 06 2012
Wrong term 678771479 deleted and a(18)-a(26) from Sebastian Petzelberger, May 04 2015
STATUS
approved