Skip to content

Commit

Permalink
Reduced to 3 threads.
Browse files Browse the repository at this point in the history
More suitable for GitHub Actions runner.
  • Loading branch information
tfpf committed May 4, 2024
1 parent 92ea3ac commit eed0c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ mod tests {
fn is_prime_small_test() {
// Break the range into equal sub-ranges, and count the number of
// primes in each sub-range in a separate thread.
let (lower, upper, pieces) = (0, 3i64.pow(20), 20);
let (lower, upper, pieces) = (0, 3i64.pow(20), 3);
let search_space = upper - lower;
let search_space = search_space / pieces + if search_space % pieces == 0 { 0 } else { 1 };
let num_of_primes = (lower..upper)
Expand Down

0 comments on commit eed0c29

Please sign in to comment.