python-flint
python-flint copied to clipboard
fix(nmod): Add nmod_ctx to store is_prime
Work in progress...
Fixes gh-124 Fixes gh-73
Have nmod use a context object so that we can store the additional information that the modulus is prime to avoid operations that might fail for non-prime modulus (gh-124).