primorial(negative)

Marc Glisse marc.glisse at inria.fr
Sun Nov 8 08:27:29 UTC 2015


Hello,

now that I added factorial to the C++ interface, it should be trivial to 
add primorial. However, I am not sure what the expected behavior is for 
negative numbers. For factorial it was a clear error. For primorial, we 
could return 1, same as we do for primorial(0). Or we could throw as we do 
for factorial. Any opinion?

-- 
Marc Glisse


More information about the gmp-discuss mailing list