You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fmpz_mod_ctx always checks primality even if not needed #333
Currently fmpz_mod_ctx always runs a pseudo-primality test on the modulus, even if it is never used.
When the modulus is huge, this can be inacceptable especially if the user purpose was to perform simple modular arithmetic.
Activity
oscarbenjamin commentedon Oct 5, 2025
I thought it was used in more places like
__truediv__but it seems not.Only initialising at first use seems reasonable.