We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1afaf3 commit 6610e3cCopy full SHA for 6610e3c
src/flint/types/fmpz_mod.pyx
@@ -93,10 +93,10 @@ cdef class fmpz_mod_ctx:
93
if mod < 1:
94
raise ValueError("Modulus is expected to be positive")
95
96
- return
97
# Set the modulus
98
fmpz_mod_ctx_set_modulus(self.val, (<fmpz>mod).val)
99
+ return
100
# Check whether the modulus is prime
101
# TODO: should we use a stronger test?
102
self._is_prime = fmpz_is_probabprime(self.val.n)
0 commit comments