You are working with numbers that are represented as binary data, not as decimal numbers. So if you calculate your sizes with base 10, the sizes will always be too large.
Also it would be an improvement to use the second parameter of mpz_export, countp, to get the size of the number written. There is no need to calculate it.
Also it would be an improvement to use the second parameter of mpz_export, countp, to get the size of the number written. There is no need to calculate it.
Statistics: Posted by blackbird — 2024-10-11 07:45