• + 1 comment
    def andProduct(a, b):
        n=0
        while a != b:
            a>>=1
            b>>=1
            n+=1
        return a<<n