diff --git a/sive.js b/sive.js index 0c01ca8..bc3a7d0 100644 --- a/sive.js +++ b/sive.js @@ -23,7 +23,9 @@ rl.question('Sive to: ', (siveTo) => { } } - primes.push(siveTo) + if (isPrime(siveTo)) { + primes.push(siveTo) + } console.table(primes)