OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..1000
MATHEMATICA
lst={}; Do[p1=Prime[n]; If[PrimeQ[p2=p1-2]&&PrimeQ[p3=p1-6]&&PrimeQ[p4=p1-12]&&PrimeQ[p5=p1-20]&&PrimeQ[p6=p1-30]&&PrimeQ[p7=p1-42], AppendTo[lst, p1]], {n, 10^5}]; lst
Select[Prime[Range[9, 710000]], AllTrue[#+{-2, -6, -12, -20, -30, -42}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jun 01 2018 *)
PROG
(PARI) p=2; q=3; forprime(r=5, 4e9, if(p+6==r&&isprime(r-12)&&isprime(r-20)&&isprime(r-30)&&isprime(r-42), print1(r", ")); p=q; q=r) \\ Charles R Greathouse IV, Oct 04 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Sep 08 2008
STATUS
approved