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:
parent
1e4d824829
commit
d2fa0fe63c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue