From 6626f8b12442c13b5568953244aedc4c497d12e8 Mon Sep 17 00:00:00 2001 From: Sneed Group Holder Date: Fri, 6 Dec 2024 20:36:20 -0600 Subject: [PATCH] fix sieve --- jspp.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jspp.js b/jspp.js index 50d44b4..00407d5 100644 --- a/jspp.js +++ b/jspp.js @@ -34,6 +34,8 @@ class JSPlusPlus { } sieve(siveTo) { + const helpers = new JSPlusPlus.General.Helpers + const isPrime = helpers.isPrime let primes = [] siveTo = Number(siveTo)