1 | initial version |
Using abs(n-t).is_pseudoprime()
instead of is_prime(abs(n-t))
is likely to result in a major speedup, at the cost of using only
a strong pseudo-primality test instead of a provable primality test.
2 | No.2 Revision |
Using
instead of abs(n-t).is_pseudoprime()(n-t).abs().is_pseudoprime()is_prime(abs(n-t))
is likely to result in a major speedup, at the cost of using only
a strong pseudo-primality test instead of a provable primality test.