Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/alphageometry
/ _gcd
Function
_gcd
pretty.py:51–54 ·
view source on GitHub ↗
(x: int, y: int)
Source
from the content-addressed store, hash-verified
49
50
51
def
_gcd(x: int, y: int) -> int:
52
while
y:
53
x, y = y, x % y
54
return
x
55
56
57
def
simplify(n: int, d: int) -> tuple[int, int]:
Callers
1
simplify
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected