login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A046137
Primes p such that p+4 and p+12 are also prime.
3
7, 19, 67, 97, 127, 229, 397, 487, 739, 757, 907, 1009, 1279, 1447, 1567, 1597, 1609, 1867, 1999, 2239, 2269, 2377, 2539, 2659, 2707, 3037, 3217, 3319, 3457, 3529, 3697, 3877, 3907, 3919, 4639, 4789, 4999, 5167, 5437, 5569, 5647, 5689, 5737
OFFSET
1,1
COMMENTS
All terms == 1 (mod 6). - Robert Israel, Jul 24 2015
LINKS
Eric Weisstein's World of Mathematics, Prime Triplet
FORMULA
A023200 INTERSECT A046133. - R. J. Mathar, Jan 23 2009
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
Sequence in context: A155384 A155218 A305483 * A193643 A228026 A122484
KEYWORD
nonn
STATUS
approved