OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..200
EXAMPLE
n=1, 3-2=1 is not prime, 5-2=3 is a prime number. So a(1) = 5.
n=2, 3^2-2=7 is a prime number. So a(2) = 3.
n=10, for k=3, 5, ..., 19, k^10-2 are all composite. 21^10-2 = 16679880978199 is a prime number. So a(10) = 21.
MAPLE
MATHEMATICA
Table[n = 1;
While[n = n + 2; cp = n^i - 2; ! PrimeQ[cp]]; n, {i, 1, 68}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Lei Zhou, Jul 24 2014
STATUS
approved