Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1 line, clear math solution in Clear category for Multiplication Table by kdim
def checkio(first, second):
return 2 * (f'{first:b}'.count('0') * second + f'{first:b}'.count('1') * (2 ** len(f'{second:b}') - 1))
March 3, 2021
Comments: