OFFSET
1,1
COMMENTS
3+9+27=39-+2=primes, 3+9+27=39-+8=primes,...
MATHEMATICA
lst={}; Do[p=Prime[n]; If[PrimeQ[p+p^2+p^3-2]&&PrimeQ[p+p^2+p^3+2]&&PrimeQ[p+p^2+p^3-8]&&PrimeQ[p+p^2+p^3+8], AppendTo[lst, p]], {n, 3*9!}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 15 2009
STATUS
approved