How to implement logarithm with GMP

Shouwei Li casmyu at
Mon May 13 23:28:09 CEST 2013

Hi there,

I am using GMP to implement the "Agrawal Kayal and Saxena algorithm" which
is a deterministic algorithm for primality, but the GMP library does not
support logarithm operation.

I want to know is there any other method that I could implement a private
version of log function.

Thank you very much!

Best Regards!
Aiolia Lee

More information about the gmp-discuss mailing list