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”).

A157042
Primes p such that 6p-7, 6p-5, 6p-1 are all prime.
2
2, 3, 19, 53, 59, 239, 269, 313, 379, 449, 613, 823, 829, 1373, 1723, 2699, 4019, 5209, 5233, 5923, 6079, 6389, 8069, 8663, 8849, 8933, 11239, 11369, 12269, 12503, 13669, 13879, 14543, 15263, 15583, 15649, 16229, 16453, 16619, 17333, 18049, 18583
OFFSET
1,1
LINKS
EXAMPLE
For p=2, (5,7,11 prime); p=3, (11,13,17 prime); p=19, (107,109,113);
MAPLE
a := proc (n) if isprime(6*ithprime(n)-7) = true and isprime(6*ithprime(n)-5) = true and isprime(6*ithprime(n)-1) = true then ithprime(n) else end if end proc: seq(a(n), n = 1 .. 2200); # Emeric Deutsch, Mar 01 2009
MATHEMATICA
Select[Prime@Range@20000, PrimeQ[6 # - 1] && PrimeQ[6 # - 7] && PrimeQ[6 # - 5] &] (* Vincenzo Librandi, Sep 11 2013 *)
Select[Prime[Range[2200]], AllTrue[6#-{1, 5, 7}, PrimeQ]&] (* Harvey P. Dale, Mar 04 2022 *)
PROG
(Magma) [p: p in PrimesUpTo(20000) | IsPrime(6*p-7) and IsPrime(6*p-5) and IsPrime(6*p-1)]; // Vincenzo Librandi, Sep 11 2013
CROSSREFS
Cf. A157043.
Sequence in context: A289860 A248702 A171149 * A128968 A153409 A143893
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 22 2009
EXTENSIONS
Corrected (269 added) and extended by Emeric Deutsch, Mar 01 2009
STATUS
approved