gcd function

Greatest Common Divisor (GCD) and Least Common Multiple (LCM)