OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..400
EXAMPLE
Conditions mean 2,p^2+4,16+p^4,256+p^8 are all primes.
MAPLE
p:= 2: count:= 0: Res:= NULL:
while count < 30 do
p:= nextprime(p);
if isprime(4+p^2) and isprime(16+p^4) and isprime(256+p^8) then
count:= count+1;
Res:= Res, p;
fi
od:
Res; # Robert Israel, Jul 17 2018
MATHEMATICA
{ta=Table[0, {100}], u=1}; Do[s0=2; s2=4+Prime[j]^2; s2=16+Prime[j]^4; s8=256+Prime[j]^8 If[PrimeQ[s0]&&PrimeQ[s2]&&PrimeQ[s4]&&PrimeQ[s8], Print[{j, Prime[j]}]; ta[[u]]=Prime[j]; u=u+1], {j, 1, 1000000}]
Select[Prime[Range[210000]], AllTrue[Table[2^j+#^j, {j, {0, 2, 4, 8}}], PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jul 13 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 01 2004
STATUS
approved