login
A187604
Primes of the form n^n-n!+n+1.
0
2, 5, 3011, 45943
OFFSET
1,1
COMMENTS
The next terms are too large to be displayed:
a(5)= 1158^1158-1158!+1158+1 (n=1158), which has 3548 digits.
a(6)= 14115^14115-14115!+14115+1 (n=14115), which has 58573 digits.
No other term has been found for n<30000.
MATHEMATICA
Do[p=n^n-n!+n+1; If[PrimeQ[p], Print[p]], {n, 200}]
CROSSREFS
Sequence in context: A215436 A082973 A306747 * A082815 A115893 A323338
KEYWORD
hard,nonn
AUTHOR
Marco Ripà, Mar 11 2011
EXTENSIONS
a(5) and a(6) found by Matevz Markovic, Mar 03 2014
STATUS
approved