OFFSET
1,2
COMMENTS
a(8) > 17548. - J.W.L. (Jan) Eerland, Oct 06 2023
EXAMPLE
0!+0^2+0+1 = 1+1 = 2 which is prime, so a(1) = 0.
1!+1^2+1+1 = 1+1+1+1 = 4, which is not prime.
2!+2^2+2+1 = 2+4+2+1 = 8, which is not prime.
3!+3^2+3+1 = 6+9+3+1 = 19, which is prime, so a(2)=3.
MATHEMATICA
For[i = 0, i < 1000, If[PrimeQ[Factorial[i] + i^2 + i + 1] == True, Print[i]]; i++ ]
n=0; Monitor[Parallelize[While[True, If[PrimeQ[Factorial[n]+n^2+n+1], Print[n]]; n++]; n], n] (* J.W.L. (Jan) Eerland, Oct 06 2023 *)
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Neil Fernandez, Jan 22 2003
EXTENSIONS
a(7) from J.W.L. (Jan) Eerland, Oct 06 2023
STATUS
approved