how many ciphers have a mpz number?
tg at gmplib.org
Wed Nov 9 10:38:08 UTC 2016
Ramón T. B. <framontb at yahoo.es> writes:
Hi all, suppose I want to count the number of ciphers of a big number
Do you really need to involve GMP? If so, do this:
1. Convert to decimal (see the GMP manual on how to do that).
2. Write plain code counting the zero digits ("ciphers").
How to do that is beyond the scope of the GMP mailing lists.
But it seems you have a decimal string on the command line. How about
just count the zero digits there directly? Again, how to program that
is beyond the scope of the GMP mailing lists.
Please encrypt, key id 0xC8601622
More information about the gmp-discuss