Fix examples and benchmarks.
This commit is contained in:
parent
ef9d870a82
commit
97520f14a9
@ -74,7 +74,8 @@ fn bench_parse_primes(bench: &mut Bencher) {
|
||||
let prime_mask = [];
|
||||
prime_mask.pad(MAX_NUMBER_TO_CHECK, true);
|
||||
|
||||
prime_mask[0] = prime_mask[1] = false;
|
||||
prime_mask[0] = false;
|
||||
prime_mask[1] = false;
|
||||
|
||||
let total_primes_found = 0;
|
||||
|
||||
|
@ -7,7 +7,8 @@ const MAX_NUMBER_TO_CHECK = 10_000; // 1229 primes <= 10000
|
||||
let prime_mask = [];
|
||||
prime_mask.pad(MAX_NUMBER_TO_CHECK, true);
|
||||
|
||||
prime_mask[0] = prime_mask[1] = false;
|
||||
prime_mask[0] = false;
|
||||
prime_mask[1] = false;
|
||||
|
||||
let total_primes_found = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user