OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
37 is in this sequence because 37 is prime and 5^1+2^5 = 37.
7901 is in this sequence because 7901 is prime and 5^3+6^5 = 7901.
MAPLE
N:= 10^10: # for terms <= N
Res:= NULL:
for x from 1 to floor(log[5](N)) do
for y from 2 by 2 do
z:= y^5 + 5^x;
if z > N then break fi;
if isprime(z) then Res:= Res, z fi
od od:
sort([Res]); # Robert Israel, Dec 16 2019
MATHEMATICA
f[x_, y_]:= 5^x + y^5; lst={}; Do[p=f[x, y]; If[PrimeQ[p], AppendTo[lst, p]], {y, 50}, {x, 50}]; Take[Union[lst], 50]
CROSSREFS
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Nov 29 2014
STATUS
approved