Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=>eval(`while(x>1&&/[01]+/.test(x))x=''+[...x].reverse().reduce(((p,v,i)=>p+v*Math.pow(2,i)),0)`)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement