title: C++ algorithm to calculate least common multiple for multiple numbers
body: <p>Is there a C++ algorithm to calculate the least common multiple for multiple numbers, like <code>lcm(3,6,12)</code> or <code>lcm(5,7,9,12)</code>?</p>