login
A103112
Smallest natural number m such that n^n^n - m is a prime.
1
3, 26, 569, 10978, 106843
OFFSET
2,1
EXAMPLE
a(5)=10978 because 5^5^5 - 10978 is a prime and 5^5^5 - k is composite for 0<k<10978.
PROG
(PARI) a(n)=(x->x-precprime(x))(n^n^n) \\ Charles R Greathouse IV, Nov 25 2014
CROSSREFS
KEYWORD
hard,more,nonn
AUTHOR
Farideh Firoozbakht, Mar 04 2005
EXTENSIONS
a(6) from Donovan Johnson, Mar 06 2008
STATUS
approved