how many ciphers have a mpz number?

Ramón T. B. framontb at
Wed Nov 9 03:43:44 UTC 2016

Hi all, suppose I want to count the number of ciphers of a big number (decimal based).
I tried this in C++:--------------------#include <gmpxx.h>#include <iostream>
using namespace std;
int main (int argc, char *argv[]){  if (argc<2)    {    printf("Please supply a number.\n");    return 1;  }      mpz_class a;
  a = argv[1];    cout << "Size " << mpz_size(a.get_mpz_t()) << "\n";
  return 0;}---------------------
But it doesn't get me what I wont.
Regards: framontb

More information about the gmp-discuss mailing list