Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for The Best Number Ever by 9maksim
"""
best number is 321 the sum of numbers with two last digits in the base
in which this digits can be: 1 in binary(01) + 5 in ternary(12)+ 11
in quaternary(23)... and 89 in decimal(89).
"""
def checkio():
sum=0
d="0"
for i in range(1,10):
sum += int(d + str(i), i + 1)
d= str(i)
return sum # 321
if __name__ == '__main__':
# These "asserts" using only for self-checking and not necessary for auto-testing
assert isinstance(checkio(), (int, float, complex))
Dec. 13, 2019
Comments: