Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 171 Bytes

problem-005.md

File metadata and controls

7 lines (6 loc) · 171 Bytes

LCM on a collection of numbers is: commutative, associative and idempotent

Therefore: LCM(a, b) = a * b / gcd(a.b) LCM(a,b,c) = LCM(a,b) * c / gcd(LCM(a,b), ans)