Before getting rid of gcd and lcm