I would like to prove that, given two integers:
$a = p_1^{\alpha_1}p_2^{\alpha_2}\cdots{p_t}^{\alpha_t}$
$b = p_1^{\beta_1} p_2^{\beta_2} \cdots p_s^{\beta_s}$
Then $\gcd(a,b)$ $=$ ${p_1}^{\min(\alpha_1, \beta_1)}{p_2}^{\min(\alpha_2, \beta_2)}\cdots {p_r}^{\min(\alpha_r\beta_r)}$
It is clear to me that
${p_1}^{\min(\alpha_1, \beta_1)}{p_2}^{\min(\alpha_2, \beta_2)}\cdots {p_r}^{\min(\alpha_r\beta_r)}$
is a divisor of both $a$ and $b$ but I can't manage to find a way to prove that it is the greatest of all the common divisors.