Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Minor optimization in Number
is_safe_prime(n)
.
If `(n-1)/2` is a strong base-2 pseudoprime, but `n` is not a strong base-2 pseudoprime, there is no need to run a Lucas test on `(n-1)/2`.
- Loading branch information