OFFSET
1,1
COMMENTS
EXAMPLE
For j=0: 1+1=2 is prime; other conditions are:
because of p^1+2=prime; 3rd and 4th conditions are as
follows: prime=p^2+4 and prime=65536+p^16.
MATHEMATICA
{ta=Table[0, {100}], u=1}; Do[s0=2; s1=2+Prime[j]^1; s2=4+Prime[j]^2; s16=65536+Prime[j]^16 If[PrimeQ[s0]&&PrimeQ[s1]&&PrimeQ[s2]&&PrimeQ[s16], Print[{j, Prime[j]}]; ta[[u]]=Prime[j]; u=u+1], {j, 1, 1000000}]
Select[Prime[Range[2*10^5]], AllTrue[Table[2^k+#^k, {k, {0, 1, 2, 16}}], PrimeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 05 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 01 2004
STATUS
approved