Advertisement
Guest User

Untitled

a guest
Nov 10th, 2015
178
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x=>eval(`while(x>1&&/[01]+/.test(x))x=''+[...x].reverse().reduce(((p,v,i)=>p+v*Math.pow(2,i)),0)`)
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement