fix sieve
This commit is contained in:
parent
8b18d5d8bd
commit
6626f8b124
1 changed files with 2 additions and 0 deletions
2
jspp.js
2
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue