Advertisement
Guest User

Untitled

a guest
Sep 14th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. user> (Integer/bitCount (bit-and (unchecked-int 2r10101010) (- 2r1 1)))
  2. 0
  3. user> (Integer/bitCount (bit-and (unchecked-int 2r10101010) (- 2r10 1)))
  4. 0
  5. user> (Integer/bitCount (bit-and (unchecked-int 2r10101010) (- 2r100 1)))
  6. 1
  7. user> (Integer/bitCount (bit-and (unchecked-int 2r10101010) (- 2r1000 1)))
  8. 1
  9. user> (Integer/bitCount (bit-and (unchecked-int 2r10101010) (- 2r10000 1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement