Open in CoCalc
a = 123456789 a.nbits()
27