Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BloombergGraphics/whatiscode
/ gcd.py
File
gcd.py
research/sample/gcd.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#From Rosetta Code
2
def
gcd(u, v):
3
return
gcd(v, u % v)
if
v
else
abs(u)
4
print gcd(2750, 3750)
Callers
nothing calls this directly
Calls
1
gcd
Function · 0.70
Tested by
no test coverage detected