I've been asked to determined whether the following are fields, PIDs, UFDs, integral domains: $$\mathbf{Z}[X],\quad \mathbf{Z}[X]/(X^2+1),\quad \mathbf{Z}[X]/(2,X^2+1)\quad \mathbf{Z}[X]/(2,X^2+X+1)$$
The first is a UFD since $\mathbf{Z}$ is, but not a PID since $\mathbf{Z}[X]/(X)\simeq \mathbf{Z}$ is not a field and $X$ is irreducible.
The second is a field since $X^2+1$ is irreducible in $\mathbf{Z}$.
I am stuck on this one. I don't think it is a field because: $$\mathbf{Z}[X]/(2,X^2+1)\simeq \mathbb{F}_2[X]/(X^2+1)$$ But $X^2+1$ is not irreducible in $\mathbb{F}_2[X]$ since $(X+1)(X+1)=X^2+1$, so it is not a field. But I can't see how to go further.
As in 3. this is $\mathbb{F}_2[X]/(X^2+X+1)$, and $X^2+X+1$ is irreducible in $\mathbb{F}_2$ so it is field.
Are 1, 2, and 4 correct? How can I go further with 3? Thanks for any help.
$\mathbb{Z}[X]$ is not a PID because the ideal $(2,X)$ is not principal.
$\mathbb{Z}[X]/(X^2+1)$ is the ring of Gaussian integers, which is a PID. It is not a field, because $2$ is not invertible (for instance).
$\mathbb{Z}[X]/(2,X^2+1)$ is not even a domain, because as you noticed $X^2+1=(X+1)^2$ in $\mathbb{F}_2$.
Your answer is correct.