How to calculate bit strength of Integer Factorization Cryptography (IFC) such as RSA using Python
(From comment so question can be closed properly)

log2 is log base 2. $log(exp(x))$ would cancel, but $log2(exp(x))$ is x times 1.44270 approximately, which gives the expected results