function lcm(integer m, integer n) return m / gcd(m, n) * n end function