From faf395273871393a834158ee4eb2eeabb9f8a4a9 Mon Sep 17 00:00:00 2001 From: sneedgroup-holder Date: Mon, 21 Oct 2024 21:23:48 +0000 Subject: [PATCH] Update sive.js --- sive.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)