I've looked on google and couldn't find the answer and thought i'd ask PARI/GP users here. My question is simply How do you get bit_length() in PARI/GP, that you can use at there interpreter here: https://pari.math.u-bordeaux.fr/gp.html
How do you get bit_length() in PARI/GP
144 Views Asked by oppressionslayer At
3
For integers, it is just
bit_length(n) = #binary(n);. For example: