Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Multiplication Table by David_Jones
def checkio(first, second):
first_0, first_1 = map(bin(first)[2:].count, '01')
return 2 * (first_0 * second + first_1 * (2 ** (len(bin(second)) - 2) - 1))
May 16, 2019