Show that $p$ prime $\implies$ $p$ irreducible for $p\in \mathbb{Z}$. My work: let $p$ be a prime and let $x,y \in \mathbb{Z}$ such that $p=xy$. Hence, from $1\cdot p=p=xy$, we have that $p|xy$ and so, being $p$ a prime, we have that $p|x$ or $p|y$.
If $p|x$, there exists $k\in\mathbb{Z}$ such that $x=kp$ and so $p=xy=p(ky)$; since $p \ne 0$ and since the cancellation property holds in $\mathbb{Z}$, we have $1=ky$ and so $y \in U(\mathbb{Z})$. The case $p|y$ is similar. This shows that $p$ is irreducibile. Is this correct?