OFFSET
1,1
COMMENTS
All terms == 1 (mod 6). - Robert Israel, Jul 24 2015
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Prime Triplet
FORMULA
MAPLE
select(t -> isprime(t) and isprime(t+4) and isprime(t+12), [6*i+1 $ i=1..1000]); # Robert Israel, Jul 24 2015
MATHEMATICA
Select[Range@ 5760, AllTrue[{#, # + 4, # + 12}, PrimeQ] &] (* Michael De Vlieger, Jul 24 2015, Version 10 *)
Select[Prime[Range[800]], AllTrue[#+{4, 12}, PrimeQ]&] (* Harvey P. Dale, Apr 18 2022 *)
PROG
(PARI) lista(nn) = forprime(p=2, nn, if (isprime(p+4) && isprime(p+12), print1(p, ", "))); \\ Michel Marcus, Jul 24 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved