PY/MATH
Home
Challenges
Concepts
Progress
Final Project
0 XP
·
L1
EN
NO
☾
⚙
← 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…
Reset
Loading...
Run code
Check solution
Console
Test cases
lcm(4, 6)
PENDING
lcm(3, 5)
PENDING
lcm(12, 18)
PENDING
Hidden
PENDING
Hints
Reveal next hint
>_