| 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.