OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MAPLE
a:=proc(n) local p: p:=ithprime(n): if isprime(p+2)=true and isprime(p*(p+2)+6) =true and isprime(p*(p+2)+8)=true then p else end if end proc: seq(a(n), n= 1 .. 20000); # Emeric Deutsch, Jul 25 2007
MATHEMATICA
apQ[n_]:=Module[{n2=n(n+2)}, And@@PrimeQ[{n+2, n2+6, n2+8}]]; Select[Prime[Range[ 20000]], apQ] (* Harvey P. Dale, Apr 07 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ray G. Opao, Jul 06 2007
EXTENSIONS
More terms from Emeric Deutsch, Jul 25 2007
STATUS
approved