diff --git a/algorithms/math/lcm.py b/algorithms/math/lcm.py index 35f1c77..e84c2ae 100644 --- a/algorithms/math/lcm.py +++ b/algorithms/math/lcm.py @@ -1,3 +1,4 @@ +# calculate gcd also, gcd(a,b)*lcm(a,b) = a*b def lcm(a, b): """ Simple version of lcm, that does not have any dependencies