repl.it
@anonymous/

ImaginativeWickedDromaeosaur

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import re
g=lambda n:[int(s,2)for s in re.sub("(?<=(.))(?=\\1)"," ",bin(n)[2:]).split()]

print g(0)
print g(1)
print g(2)
print g(3)
print g(4)
print g(5)
print g(6)
print g(7)
print g(8)
print g(9)
print g(10)
print g(50)
print g(100)
print g(1000)
print g(10000)
print g(12914)
print g(371017)