Largest integer dividing all inputs
Smallest positive integer divisible by all
Euclidean division algorithm for GCD, combined with prime factor decomposition.