[algorithm] Least common multiple for 3 or more numbers