Is there a C++ algorithm to calculate the least common multiple for multiple numbers, like lcm(3,6,12) or lcm(5,7,9,12)?
lcm(3,6,12)
lcm(5,7,9,12)
Not built in to the standard library. You need to either build it yourself or get a library that did it. I bet Boost has one...