Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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 "
""
13
def
lcm(x,y):
14
return
(x*y)//gcd(x,y)
15
16
n = int(input())
17
g=1
Callers
1
sol2.py
File · 0.85
Calls
1
gcd
Function · 0.70
Tested by
no test coverage detected