nq1s788

5

May 16th, 2026
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. for n in range(1, 2 * 10**6):
  2.     s = bin(n)[2:]
  3.     ed = s.count('1')
  4.     ze = s.count('0')
  5.     r = bin(ed)[2:] + bin(ze)[2:]
  6.     if int(r, 2) == 156:
  7.         print(n)
  8.         break
Advertisement
Add Comment
Please, Sign In to add comment