powered by
A simple algorithm to compute the least common multiple of two numbers
LCM(x, y)
The least common multiple of x and y.
an object of class numeric
LCM(5,7) LCM(5,8) LCM(5,9) LCM(5,10) Reduce(LCM, 1:10) # -> 2520
Run the code above in your browser using DataLab