I was trying to solve some exercise from my abstract algebra course, and at some point, I assumed $\mathbb{Z}/2\mathbb{Z} \cong \mathbb{Z}_2$ is an integral domain, because I thought to remember that $\mathbb{Z}_p$ is integral domain iif $p$ is a prime number.
Am I right? If I am, how can I prove it to add it to my execise? If not, could you give me a counter example? Any help will be appreciated, thanks in advance.
Being an integral domain means: if $a,b\in R$ are such that $ab=0$ then $a=0$ or $b=0$.
In case of $\mathbb{Z}/n\mathbb{Z}$ this translates to: if $a,b\in\mathbb{Z}$ are such that $n|ab$ then $n|a$ or $n|b$. Then the classical number theory shows that this works only for prime $n$.