Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 12, 2024
1 parent b55674e commit bfcb979
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ fn test_prime_factors() -> Result<(), String> {
for v in primes::primes_until(1024).combinations(2) {
let p = v[0];
let s = v[1];
assert!(prime::is_prime(p));
assert!(prime::is_prime(s));
assert!(prime::is_composite(p * s) != 0);
assert!(primes::is_prime(p));
assert!(primes::is_prime(s));
assert!(primes::is_composite(p * s) != 0);
for f in primes::prime_factors(p * s) {
assert!(prime::is_prime(f));
assert!(primes::is_prime(f));
assert!(f == p || f == s);
}
}
Expand Down

0 comments on commit bfcb979

Please sign in to comment.