Advertisement
w31c0m32h311

5ex

Jun 17th, 2022
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. for n in range(1, 15000):
  2.     R = bin(n)[2:]
  3.     if n % 2 == 0:
  4.         R += '01'
  5.     else:
  6.         R += '10'
  7.     r = int(R, base=2)
  8.     if r > 130:
  9.         print(int(R, 2))
  10.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement