didn't notice it was skiping 1

This commit is contained in:
The Ghost of FOSS' Past 2024-10-21 22:01:09 +00:00
parent 996c3f9051
commit 4b96a2938e

View file

@ -15,7 +15,7 @@ const rl = readline.createInterface({ input, output });
rl.question('Sive to: ', (siveTo) => {
siveTo = Number(siveTo)
for (var i = 1; i < siveTo; i++) {
for (var i = 0; i < siveTo; i++) {
if (isPrime(i)) {
primes.push(i)
}