Update sive.js
This commit is contained in:
parent
ad761b8b62
commit
faf3952738
1 changed files with 3 additions and 1 deletions
4
sive.js
4
sive.js
|
@ -23,7 +23,9 @@ rl.question('Sive to: ', (siveTo) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
primes.push(siveTo)
|
if (isPrime(siveTo)) {
|
||||||
|
primes.push(siveTo)
|
||||||
|
}
|
||||||
|
|
||||||
console.table(primes)
|
console.table(primes)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue