Skip to content

Instantly share code, notes, and snippets.

@japm48
Created August 28, 2021 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save japm48/a91dd96e3f689aa688d4cfa56946be85 to your computer and use it in GitHub Desktop.
Save japm48/a91dd96e3f689aa688d4cfa56946be85 to your computer and use it in GitHub Desktop.
Eclidean GCD in python
def euclidean_gcd(a, b):
while a != b:
if a > b:
a -= b
else:
b -= a
return a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment