コード例 #1
0
ファイル: utility.py プロジェクト: jvkersch/color-patterns
def lcm(a, b):
    """ Returns the least common multiple of the two given numbers.
    """
    return a * b / standard_gcd(a, b)
コード例 #2
0
ファイル: utility.py プロジェクト: jvkersch/color-patterns
def gcd(a, b):
    """ Returns the greatest common divisor of the two given numbers.
    """
    return standard_gcd(a, b)