Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Good Radix by flpo
def checkio(n):
m = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'.index(max(n)) + 1
return next((k for k in range(m, 37) if int(n, k) % (k-1) == 0), 0)
May 5, 2017