Greatest Common Divisor
How to calculate ?
Divisors listing
Euclid's algorithm
def gcd(a, b):
if a == 0:
return b
return gcd(b%a, a)Extended Euclid's Algorithm
How it works ?
Resources
Last updated