OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
EXAMPLE
a(5)=59051 because 9^5+2 is prime whereas 3^5+2=5*7^2,5^5+2=53*59 and
7^5+2=3*13*431 are composite.
MATHEMATICA
sp[n_]:=Module[{k=2}, While[!PrimeQ[k^n+2], k++]; k^n+2]; Array[sp, 30, 0] (* Harvey P. Dale, Feb 22 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Jun 01 2004
EXTENSIONS
More terms from Harvey P. Dale, Feb 22 2012
STATUS
approved