• + 0 comments
    def getTotalX(a, b):
        # Write your code here
        ekuk=math.lcm(*a)
        ekub=math.gcd(*b)
        count=0
        for i in range(ekuk,ekub+1):
            result = list(map(lambda x: i%x==0, a))
            if False not in result:
                result2=list(map(lambda y: y%i==0,b))
                if False not in result2:
                    count+=1
        return count