Global setting: to use IsProbPrime in place of IsPrime
An idea: since
IsPrime can be extremely slow for larger inputs, and since
IsProbPrime is normally extremely reliable, we could allow the user to specify when creating the
GlobalManager to allow calls to
IsPrime to be redirected silently to
There are several other functions where a probabilistic version can be much faster than a fully deterministic equivalent; so it may be nice to offer flags for these too.
We could also put into the
GlobalManager the default number of iterations which
IsProbPrime performs. And similarly for any other default values?