OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Prime Triplet.
FORMULA
MAPLE
q:= p-> andmap(isprime, [p, p+4, p+10]):
select(q, [$2..3000])[]; # Alois P. Heinz, Feb 23 2020
MATHEMATICA
Select[Range@ 2820, AllTrue[{#, # + 4, # + 10}, PrimeQ] &] (* Michael De Vlieger, Jul 24 2015, Version 10 *)
PROG
(PARI) lista(nn) = forprime(p=2, nn, if (isprime(p+4) && isprime(p+10), print1(p, ", "))); \\ Michel Marcus, Jul 24 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved