OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MAPLE
i:=1:for k from 1 to 2000 do if isprime(k) and isprime(k+30)and isprime(k+60) and isprime(k+90) and isprime(k+120)then a[i]:=k:a[i+1]:=k+30:a[i+2]:=k+60: a[i+3]:=k+90:a[i+4]:=k+120:i:=i+5 fi od: seq(a[n], n=1..i-1);
MATHEMATICA
Select[Flatten[Table[{n+(30*Range[0, 4])}, {n, Prime[Range[100]]}], 1], AllTrue[ #, PrimeQ]&]//Flatten (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Feb 19 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Miklos Kristof, Sep 27 2006
STATUS
approved