Message414233
> the total number of trailing 1 bits in the integers from 1
> through N inclusive is N - N.bit_count()
Sorry, that's the total number of trailing 0 bits. The total number of trailing 1 bits is (N+1) - (N+1).bit_count(). |
|
Date |
User |
Action |
Args |
2022-03-01 02:30:42 | tim.peters | set | recipients:
+ tim.peters, rhettinger, mark.dickinson, benrg |
2022-03-01 02:30:42 | tim.peters | set | messageid: <1646101842.07.0.888433156053.issue46868@roundup.psfhosted.org> |
2022-03-01 02:30:42 | tim.peters | link | issue46868 messages |
2022-03-01 02:30:42 | tim.peters | create | |
|