Is there any easy way you could increase the maximum upper limit? I'm currently trying to get all prime numbers up to 1592524800 and get this error:
var numbers = new Int8Array(max + 1);
^
RangeError: Invalid array buffer length
at new ArrayBuffer (native)
at new Int8Array (native)
at seive (sieve\sieve.js:16:17)
at Object.<anonymous> (primePNG.density.sieve.js:10:14)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:349:32)
at Function.Module._load (module.js:305:12)
at Function.Module.runMain (module.js:490:10)
at startup (node.js:124:16)
It's no important research or anything. I'm only generating some PNG patterns out of it, but it'd be nice if you could use something bigger than an Int8Array. (I guess that's the reason for the RangeError)
Is there any easy way you could increase the maximum upper limit? I'm currently trying to get all prime numbers up to 1592524800 and get this error:
It's no important research or anything. I'm only generating some PNG patterns out of it, but it'd be nice if you could use something bigger than an Int8Array. (I guess that's the reason for the RangeError)