First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 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.

click to hide/show revision 2
No.2 Revision

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.