mpz_sizeinbase() bug

Torbjörn Granlund tg at
Wed Aug 19 08:20:23 UTC 2020

"Lebender, Johannes" <johannes.lebender at> writes:

  i found a possible bug in the mpz_sizeinbase() function. e.g.
  mpz_sizeinbase(63, 10) returns 2
  mpz_sizeinbase(64, 10) returns 3

Why do you think those values are wrong?  Which values do you expect

Please encrypt, key id 0xC8601622

More information about the gmp-bugs mailing list