Broken lcm/gcd with main for testing