I am building on a previous question, where we showed that $\mathbb{Z}[x]/(x^2+1) \cong \mathbb{Z}[i]$. Now, I want to prove the statement in the title of this question.
First, let $p$ be an odd prime number. By definition, $p$ is prime in $\mathbb{Z}[i]$ if, whenever $p|ab$ for $a,b \in \mathbb{Z}[i]$, then $p|a$ or $p|b$.
I feel like I have quite a few pieces. Firstly, $$\mathbb{Z}[x]/(x^2+1) \cong \mathbb{Z}[i]$$ Then, if we let $(p)$ be the ideal in $\mathbb{Z}[i]$ or $\mathbb{Z}[x]$ generated by the odd prime $p$, then we can conclude $$\mathbb{Z}[x]/(x^2+1)/(p) \cong \mathbb{Z}[i]/(p)$$ Finally by the proposition that, for any ring $R$, and $I$ and ideal of $R$, with $(I)=I[x]$ the ideal generated by $I$ in $R[x]$, then $R[x]/(I) \cong (R/I)[x]$, I want to assume that $$\mathbb{Z}[i]/(p) \cong \mathbb{Z}/n\mathbb{Z}[i]$$ or, more generally $$\mathbb{Z}[x]/(p) \cong \mathbb{Z}/n\mathbb{Z}[x]$$
I assume I need to use these pieces, but I not quite grasping how to tie the two sides together. I am having a harder time understanding how to use the right side, that $x^2+1$ does not have roots in $\mathbb{Z}/p\mathbb{Z}$. I am understanding this to mean $x^2+1 \ne 0 \mod p$. I also think I need to view $x^2+1$ as an element of $\mathbb{Z}[x]$, which would be the kernel of the map to $\mathbb{Z}[i]$. But, again, I cannot tie it all together.