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
KEYWORD
hard,nonn
AUTHOR
Marco Ripà, Mar 11 2011
EXTENSIONS
a(5) and a(6) found by Matevz Markovic, Mar 03 2014
STATUS
approved