• + 0 comments
    def getTotalX(a, b):
        l = math.lcm(*a)
        g = math.gcd(*b)
        count = 0
        for x in range(l, g+1, l):
            if (g % x) == 0:
                count += 1
        return count