Skip to content

Commit

Permalink
remove redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Jun 19, 2024
1 parent 7ca095f commit 770213a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ pub const fn is_prime(n: u64) -> bool {
i += 1;
}
let witnesses = WITNESSES[i].1;
let num_witnesses = witnesses.len();

let mut i = 0;
while i < num_witnesses && witnesses[i] < n {
while i < witnesses.len() && witnesses[i] < n {
if !miller_test(d, n, witnesses[i]) {
return false;
}
Expand Down

0 comments on commit 770213a

Please sign in to comment.