PY/MATH
Challenges
Arithmetic · Medium

Least Common Multiple

Write `lcm(a, b)` returning the least common multiple of `a` and `b`.

Examples
Input: lcm(4, 6)
Output: 12
Input: lcm(3, 5)
Output: 15
solution.py○ Loading…
Loading...
Console
Test cases
lcm(4, 6)PENDING
lcm(3, 5)PENDING
lcm(12, 18)PENDING
HiddenPENDING
Hints