Skip to content

Commit f115fee

Browse files
committed
Use fmpz_isprobabprime
1 parent 6610e3c commit f115fee

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/flint/types/fmpz_mod.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ cdef class fmpz_mod_ctx:
9696
# Set the modulus
9797
fmpz_mod_ctx_set_modulus(self.val, (<fmpz>mod).val)
9898

99-
return
10099
# Check whether the modulus is prime
101100
# TODO: should we use a stronger test?
102101
self._is_prime = fmpz_is_probabprime(self.val.n)

0 commit comments

Comments
 (0)