MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / lcm

Function lcm

project_euler/problem_05/sol2.py:13–14  ·  view source on GitHub ↗
(x,y)

Source from the content-addressed store, hash-verified

11
12""" Using the property lcm*gcd of two numbers = product of them """
13def lcm(x,y):
14 return (x*y)//gcd(x,y)
15
16n = int(input())
17g=1

Callers 1

sol2.pyFile · 0.85

Calls 1

gcdFunction · 0.70

Tested by

no test coverage detected