Proposition
Let n be a non-zero integer. Then n is irreducible (in Z) if and only if n is prime.
Proof
Suppose n is an irreducible non-zero integer and n∣mk. Thus, there exists q∈Z such that qn=mk.
Let d=gcd(n,k). Since d∣n and d∣k, there exists c∈Z such that cd=n.
Since n is irreducible, either c is a unit or d is a unit.
Suppose that c is a unit. In this case n∣d and hence n∣k, and we’re done.
Suppose instead that d is a unit. In this case, there exist u,v∈Z such that nu+kv=1.
Hence,
m=m(nu+kv)=mnu+mkv=mnu+qnv=n(mu+qv).
And in this case n∣m.
The converse follows by lemma 1.7.
■