How to check whether a integer of type mpz_t is a palindrome

Torbjorn Granlund tg at gmplib.org
Wed Feb 8 11:24:19 CET 2012


Matevž Markovič <ivwcorporation.matevz at gmail.com> writes:

  One last question -- why have you, Torbjorn, proposed exactly 30 (in
  d^(n-30) and in A mod d^30) and not some other number? I would really like
  to know.
  
I pulled that number out of a hat.

If you make it too large, computations would become slower.  If you make
it too small, you would get false positives.

-- 
Torbjörn


More information about the gmp-discuss mailing list