OFFSET
1,1
COMMENTS
If n is of the form (pk)^p for some k and some prime p, then a(n) = 0 (See A097764).
FORMULA
a(A097764(n)) = 0 for all n.
EXAMPLE
1^1-1 = 0 is not prime. 2^1-1 = 1 is not prime. 3^1-1 = 2 is prime. Thus, a(1) = 3.
PROG
(Python)
import sympy
from sympy import isprime
def TwoMin(x):
..for k in range(1, 5000):
....if isprime(k**x-x):
......return k
x = 1
while x < 100:
..print(TwoMin(x))
..x += 1
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Mar 20 2014
STATUS
approved