Guest User

Untitled

a guest
Oct 22nd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1.                     if (factor > 1)
  2.                     {
  3.                         if ((factor & (factor-1)) != 0)
  4.                         {
  5.                                 while ((factor & (factor-1)) != 0)
  6.                                         factor &= factor-1;
  7.                                
  8.                                 factor <<= 1;
  9.                         }
  10.                     }
  11.                     else
  12.                     {
  13.                         factor = 1;
  14.                     }
Add Comment
Please, Sign In to add comment