OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
EXAMPLE
a(7)=7^7-2=823541 is prime whereas 3^7-2=2185 and 5^7-2=78123 are composite.
MATHEMATICA
Table[k = 2; While[p = k^n - 2; ! PrimeQ[p], k++]; p, {n, 20}] (* T. D. Noe, Apr 03 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Jun 01 2004
EXTENSIONS
a(2) corrected by Zak Seidov, Apr 03 2012
STATUS
approved