repl.it
@anonymous/

NastyCuteXanthareel

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
#f=lambda x:x+1if 1+x&1+x<<1<1 else f(x+1)

#def f(x):x+=1;return x*(x&x*2<1)or f(x)

f=lambda x:1+x&x/2and f(x+1)or-~x

# print all results in 0-20
for i in range(21):print `i`+'\t', `f(i)`+'\t', bin(f(i))