You are viewing a single comment's thread. Return to all 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
Seems like cookies are disabled on this browser, please enable them to open this website
Between Two Sets
You are viewing a single comment's thread. Return to all comments →