[step:Bound the prime exponents of an arbitrary common divisor]
Let $c \in \mathbb{N}$ be any common divisor of $a$ and $b$. By uniqueness of prime factorisation, write
\begin{align*}
c = \prod_{j=1}^s q_j^{\gamma_j},
\end{align*}
where $s \in \mathbb{Z}_{\ge 0}$, the numbers $q_1,\dots,q_s$ are pairwise distinct primes, and $\gamma_j \in \mathbb{N}$ for each $j \in \{1,\dots,s\}$.
Since $c \mid a$, there is an integer $u \in \mathbb{N}$ such that $a=cu$. Comparing prime factors in the prime factorisations of $a$, $c$, and $u$ by uniqueness of prime factorisation, every prime $q_j$ must be one of the primes $p_1,\dots,p_r$. Moreover, if $q_j=p_i$, then the exponent of $p_i$ in $c$ is at most $\alpha_i$. Since also $c \mid b$, the same comparison with $b$ shows that the exponent of $p_i$ in $c$ is at most $\beta_i$. Therefore, for each $i \in \{1,\dots,r\}$, the exponent of $p_i$ in $c$ is at most
\begin{align*}
\min(\alpha_i,\beta_i).
\end{align*}
No prime outside $\{p_1,\dots,p_r\}$ divides $c$.
[/step]