lcm

compute the least common multiple using Euclidean algorithm