OFFSET
1,1
COMMENTS
Enoch Haga proposed studying the primality of f(k) and he already knew the first 4 solutions. C. Rivera found the next four solutions using Ubasic and the last one using PRIMEFORM. Currently f(1907) is only a probable prime number, according to PRIMEFORM.
No other k < 25000. - T. D. Noe, Jun 12 2008
LINKS
C. Rivera, Puzzle 185
Eric Weisstein's World of Mathematics, Power Difference Prime
Eric Weisstein's World of Mathematics, Integer Sequence Primes
EXAMPLE
2^2 - 1^1 = 3 is prime.
MATHEMATICA
Select[Range[2, 200], PrimeQ[ #^#-(#-1)^(#-1)]&] (* T. D. Noe, Jun 12 2008 *)
PROG
(PARI) isok(k) = ispseudoprime(k^k - (k-1)^(k-1)); \\ Jinyuan Wang, Mar 19 2020
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Carlos Rivera, Jun 28 2002
EXTENSIONS
7918 found by Henri Lifchitz in 2001, contributed by Eric W. Weisstein, Nov 29 2005
STATUS
approved