Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Multiplication Table by htamas
def checkio(a, b):
A, B = bin(a)[2:], bin(b)[2:]
return 2 * A.count('0') * b + 2 * A.count('1') * (2**len(B) - 1)
Feb. 5, 2014
Comments: