Update sive.js

This commit is contained in:
The Ghost of FOSS' Past 2024-10-21 21:23:48 +00:00
parent ad761b8b62
commit faf3952738

View file

@ -23,7 +23,9 @@ rl.question('Sive to: ', (siveTo) => {
}
}
primes.push(siveTo)
if (isPrime(siveTo)) {
primes.push(siveTo)
}
console.table(primes)