The proof is divided into two steps.
Existence
Uniqueness
The case a = 2 is trivial. So suppose that a is at least 3.
If a is a prime then we are done.
If a is not a prime then it has a divisor
b such that 1 < b < a.
According to the induction hypothesis
b and a/b can both be written as a product of primes:
b = p1 ··· pr
, a/b = pr + 1
···
ps. For a we have
a = p1 ··· pr
· pr + 1 ··· ps.
a = p1 ··· pr and a = q1 ··· qs
are two ways of expressing a as a product of primes, then it follows that
p1 | p1 ··· pr = q1 ··· qs.
From the corollary we may conclude that there exists an index k in the set {1, ... ,s} such that p1 | qk. But then we have p1 = qk because qk is a prime. Now apply the induction hypothesis to the integer a/p1 with the two expressions as products of primes
a/p1 = p2 ··· pr and a/p1 = q1 ··· qk - 1 · qk + 1 ··· qs.
These factorization of a/p1 are the same
(up to the order of the factors) and therefore the two factorization
of a are the same.