[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gmp-discuss
Subject:    how many ciphers have a mpz number?
From:       tg () gmplib ! org (=?utf-8?Q?Torbj=C3=B6rn?= Granlund)
Date:       2016-11-09 10:38:08
Message-ID: 86zil9aqgf.fsf () shell ! gmplib ! org
[Download RAW message or body]

Ram?n T. B. <framontb at yahoo.es> writes:

  Hi all,?suppose I want to count the number of ciphers of a big number
  (decimal based).

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.

-- 
Torbj?rn
Please encrypt, key id 0xC8601622

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic