Increase prime numbers limit to 100K.

This commit is contained in:
Stephen Chung 2020-04-27 12:42:39 +08:00
parent 5afeba6fd1
commit 0d5a36edc8

View File

@ -2,7 +2,7 @@
let now = timestamp();
const MAX_NUMBER_TO_CHECK = 10_000; // 1229 primes <= 10000
const MAX_NUMBER_TO_CHECK = 100_000; // 9592 primes <= 100000
let prime_mask = [];
prime_mask.pad(MAX_NUMBER_TO_CHECK, true);