I have already seen a proof of this statement here on stackexchange but I would like someone to verify whether "my proof" is correct and also if you could point out issues with the writing style. thanks in advance!
Statement. $\mathbb{Z}_{p}$ is an integral domain $\Leftrightarrow$ $p$ is prime.
Proof.$(\Rightarrow)$ Suppose $\mathbb{Z}_{p}$ is an integral domain. Assume (by way of contradiction) that $n$ is not prime. Then $n=ab$ for some $a,b\in \mathbb{Z}$ where $1<a$ and $b<n$, meaning $ab\equiv 0\pmod n$. This is a contradiction since $\mathbb{Z}_{p}$ is assumed to be an integral domain and therefore does not contain any zero divisors. Therefore $p$ must be prime.
$(\Leftarrow)$ Assume $p$ is prime. Then $a$ does not divide $n$ for any $1<a<n$ where $a\in \mathbb{Z}_{p}$. Thus $\mathbb{Z}_{p}$ does not contain any zero divisors and is therefore an integral domain.
I have a possibly more rigorous proof for the $\Leftarrow$ proof: