Proposition

Let nn be a non-zero integer. Then nn is irreducible (in Z\mathbb{Z}) if and only if nn is prime.

Proof

Suppose nn is an irreducible non-zero integer and nmk.n \mid mk. Thus, there exists qZq \in \mathbb{Z} such that qn=mk.qn = mk.

Let d=gcd(n,k).d = \gcd(n, k). Since dnd \mid n and dk,d \mid k, there exists cZc \in \mathbb{Z} such that cd=n.cd = n.

Since nn is irreducible, either cc is a unit or dd is a unit.

Suppose that cc is a unit. In this case ndn \mid d and hence nk,n \mid k, and we’re done.

Suppose instead that dd is a unit. In this case, there exist u,vZu, v \in \mathbb{Z} such that nu+kv=1.nu + kv = 1.

Hence,

m=m(nu+kv)=mnu+mkv=mnu+qnv=n(mu+qv).\begin{align*} m & = m(nu + kv) \\ & = mnu + mkv \\ & = mnu + qnv \\ & = n(mu + qv). \end{align*}

And in this case nm.n \mid m.

The converse follows by lemma 1.7.

\blacksquare