hdarwin

cstutoringcenter.com_Pandigital Exponent

Jan 5th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. y = 1
  2. while True:
  3.     x = str(2 ** y)
  4.     st = x[len(x)-9:len(x)]
  5.     s = set(st)
  6.     if len(s) == 9 and not '0' in s:
  7.         print y
  8.         break
  9.     y+=1
Advertisement
Add Comment
Please, Sign In to add comment