Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user> (Integer/bitCount (bit-and (unchecked-int 2r10101010) (- 2r1 1)))
- 0
- user> (Integer/bitCount (bit-and (unchecked-int 2r10101010) (- 2r10 1)))
- 0
- user> (Integer/bitCount (bit-and (unchecked-int 2r10101010) (- 2r100 1)))
- 1
- user> (Integer/bitCount (bit-and (unchecked-int 2r10101010) (- 2r1000 1)))
- 1
- user> (Integer/bitCount (bit-and (unchecked-int 2r10101010) (- 2r10000 1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement