• + 0 comments

    I forgot math concepts and did this instead.

    def getTotalX(a, b):
        # Write your code here
        between = 0
        for num in range(1, max(b)+1):
            cond_a = all([bool(num%i==0) for i in a])
            cond_b = all([bool(i%num==0) for i in b])
            if cond_a and cond_b:
                between += 1
        return between