"Marco Bodrato" <bodrato at mail.dm.unipi.it> writes: There is a small old bug in mpz_powm, which can be detected with the following program: I think we should improve the testing code to trigger this bug! -- Torbjörn Please encrypt, key id 0xC8601622