Closed fjarri closed 1 year ago
Added in d6b7d42a6029bee71ff714ad96af4797b677152c for hazmat
functions. The ones in presets
will continue to return bool
because the idea of presets
is that it contains a vetted sequence of checks that is supposed to be trusted.
Currently the primality checking functions return
bool
, which may occasionally be confusing, and also does not distinguish between "definitely prime" and "probably prime" (although with the intended usage of this library, the former would be pretty rare, since we can only tell that during the trial division phase). Should we instead follownum-prime
and return an enum likePrimality
?