OFFSET
1,1
EXAMPLE
p(2)=3, 3^5 = 243; for odd k and n > 1, p(n)^r - k is even and thus not prime, so we only need consider even k.
for k = 2: 243 + 2 = 245, which is 5 * 7^2 and not prime.
for k = 4: 243 + 4 = 247, which is 13 * 19, also not prime.
for k = 6: 243 + 6 = 249, which is 3 * 83, also not prime.
for k = 8: 243 + 8 = 251, which is prime, so 8 is the smallest number that can be added to 243 to make another prime.
Hence a(2) = 8.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Carl R. White, Sep 14 2007
STATUS
approved