number is power of 2 while loop