Skip to content

Instantly share code, notes, and snippets.

@AyumuKasuga
Created May 30, 2012 21:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AyumuKasuga/2838980 to your computer and use it in GitHub Desktop.
expiremantal generator
all = '0123456789abcdefghijklmnopqrstuvwxyz'
l=len(all)
t=8248398492887
r=list()
while True:
p,t=t%l,t//l
r.append(p)
if t<l:
r.append(t) if t is not 0 else None
break
r.reverse()
print ''.join(map(lambda x: all[x], r))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment