OFFSET
1,1
EXAMPLE
a(1)=3 because 3*2^3-2*3^2+1=7 is prime, a(2)=5 because 5*4^5-4*5^4+1=2621 is prime.
PROG
(PARI) is(n)=ispseudoprime(n*(n-1)^n-(n-1)*n^(n-1)+1) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,hard
AUTHOR
Juri-Stepan Gerasimov, Jun 12 2011
STATUS
approved