proposal to change the return type/value of mpz_primorial_ui

Shane Neph sjneph at gmail.com
Wed Nov 3 18:18:15 UTC 2021


mpz_primorial_ui( ) is a great function.  Why not return the actual
number of primes that go into that calculation?  The argument n is an
unsigned long int, and the return argument could be as well.  It is
often valuable to know that number, and mpz_primorial_ui(...) has done
all of the heavy lifting.

Thanks.


More information about the gmp-devel mailing list