• + 0 comments
    def getTotalX(a, b):
        count=0
        bet_1=max(arr)
        bet_2=min(brr)
        
        for factor in range(bet_1, bet_2+1):
            if all(factor%i==0 for i in arr):
                if all(j%factor==0 for j in brr):
                    count+=1
        return count