fork(2) download
  1. n=0
  2. for c in input():n=n<<8|ord(c)
  3. while 1:print n;n^=2**n.bit_length()-n/n
Runtime error #stdin #stdout #stderr 0.01s 9032KB
stdin
'Inf'
stdout
4812390
3576217
618086
430489
93798
37273
28262
4505
3686
409
102
25
6
1
0
stderr
Traceback (most recent call last):
  File "prog.py", line 3, in <module>
ZeroDivisionError: integer division or modulo by zero