"""
Return the number of uniformly distributed bits in a little-endian representation of a
uniformly-random mod-p integer.
The prime `p` is provided on stdin in any format that python can eval. For example,
$ python3 scripts/useful_bits_modp.py <<< 0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab
"""
return