how to prove this:
$$ \text{if } n! + n^2 + 1 \text{ is prime then } n^2 + 1 \text { is also prime}$$
I was thinking that n! is definitely not prime since it can be written as $n\times (n-1)....2\times 1$. So $n^2 + 1$ is not prime. In other words, n! does not have the same factor as $n^2 + 1$, and I don't know how to prove the following.