File size: 114 Bytes
91f7972
 
 
 
58f6308
1
2
3
4
5
6
def gcd(a, b):
    """Calculate the Greatest Common Divisor."""
    while b:
        a, b = b, a % b
    return a