Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import itertools
  2. ost = ''
  3. min = 4096
  4. q = 65535
  5. for i in range(min, q + 1):
  6. w = i
  7. ost=hex(i)
  8. if int(ost[2], 16) >= int(ost[3], 16) >= int(ost[4], 16) >= int(ost[5], 16):
  9. b=bin(int(ost[2:],16))
  10. if b.find("111111111")!=-1:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement