OFFSET
1,1
COMMENTS
Also prime numbers distance <= 1 from an element of A167379. - Danny Rorabaugh, May 04 2017
MATHEMATICA
fQ[n_] := (PrimeQ[3n -4] && PrimeQ[3n -2]) || (PrimeQ[3n +2] && PrimeQ[3n +4]); Join[{2}, Select[ Prime@ Range@ 200, fQ]] (* Robert G. Wilson v, Apr 30 2017 *)
PROG
(PARI) {
print1(2", ");
forprime(n=3, 1000,
p3=3*n;
if((isprime(p3+2)&&isprime(p3+4))||(isprime(p3-2)&&isprime(p3-4)),
print1(n", ")
)
)
}
CROSSREFS
KEYWORD
nonn
AUTHOR
Dimitris Valianatos, Apr 29 2017
STATUS
approved