clippy: fixes

This commit is contained in:
2026-04-26 13:33:25 +02:00
parent 0208637dd0
commit ca93c145bb
+1 -1
View File
@@ -9,7 +9,7 @@ const MAX_SIEVED_PRIMES: usize = 100_000_000;
fn count_prime_factor_exponent(prime: u64, mut nr: u64) -> u64 {
let mut count = 0;
while nr % prime == 0 {
while nr.is_multiple_of(prime) {
nr /= prime;
count += 1;
}