1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 04:57:45 +00:00

factor::miller_rabin::tests: small_composites → small_semiprimes

This is more descriptive, as semiprime are the products of 2 primes;
all semiprimes are composite, but not all composite numbers are semiprime.
This commit is contained in:
nicoo 2020-07-04 20:44:26 +02:00
parent 1e4d824829
commit d2fa0fe63c

View file

@ -162,7 +162,7 @@ mod tests {
}
#[test]
fn small_composites() {
fn small_semiprimes() {
for p in primes() {
for q in primes().take_while(|q| *q <= p) {
let n = p * q;