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 Pouf
from itertools import chain
table = list(map(chr, chain(range(48, 58), range(65, 91))))
def checkio(number):
kmin = max(table.index(n) for n in number) + 1
solutions = [k for k in range(kmin, 37) if not int(number, k) % (k-1)]
return min(solutions or [0])
June 6, 2015