OFFSET
1,2
COMMENTS
2^2560 produces a 782 digit prime (certified).
For purposes of this sequence, zero raised to the zero power = 1. - Harvey P. Dale, Feb 16 2020
EXAMPLE
a(5)=52 because 5^5 + 2^2 = 3129 and 523129 is prime.
MATHEMATICA
cnsdQ[n_]:=Module[{idn=IntegerDigits[n]/.(0->1), c}, c=Total[idn^idn]; PrimeQ[n*10^IntegerLength[c]+c]]; Select[Range[1000], cnsdQ] (* Harvey P. Dale, Feb 16 2020 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jason Earls, Jun 29 2005
STATUS
approved