Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/google-deepmind/alphageometry
/ _gcd
Function
_gcd
problem.py:121–124 ·
view source on GitHub ↗
(x: int, y: int)
Source
from the content-addressed store, hash-verified
119
120
121
def
_gcd(x: int, y: int) -> int:
122
while
y:
123
x, y = y, x % y
124
return
x
125
126
127
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