Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Multiplication Table by Oleg_Domokeev
def checkio(first, second):
first = format(first, 'b')
return 2 * (second * first.count('0') + ((1 << second.bit_length()) - 1) * first.count('1'))
Dec. 5, 2018
Comments: