Ask Your Question

Revision history [back]

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.

Using abs(n-t).is_pseudoprime()(n-t).abs().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.