MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / gcd

Function gcd

research/sample/gcd.py:2–3  ·  view source on GitHub ↗
(u, v)

Source from the content-addressed store, hash-verified

1#From Rosetta Code
2def gcd(u, v):
3 return gcd(v, u % v) if v else abs(u)
4print gcd(2750, 3750)

Callers 1

gcd.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected