Fix benchmark.

This commit is contained in:
Stephen Chung 2020-04-22 20:08:42 +08:00
parent 97520f14a9
commit adc74c795e

View File

@ -16,7 +16,8 @@ const MAX_NUMBER_TO_CHECK = 1_000; // 168 primes <= 1000
let prime_mask = []; let prime_mask = [];
prime_mask.pad(MAX_NUMBER_TO_CHECK, true); 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; let total_primes_found = 0;