This wouldn't work over an actual network or separate processes, would it? Those wouldn't share the global state through the prototype.
This comment is hidden because it contains spoiler information about the solution
Yup, I had a extra prime slip through.
The test for 1000 is definitely broken in JS. I used this list for comparisson: https://primes.utm.edu/lists/small/1000.txt . When diff'd with to a file with my answer it shows no diferences.
Oh, it looks better with the getter and setter on their own functions, much more readable.
Loading collection data...
This wouldn't work over an actual network or separate processes, would it? Those wouldn't share the global state through the prototype.
This comment is hidden because it contains spoiler information about the solution
Yup, I had a extra prime slip through.
The test for 1000 is definitely broken in JS.
I used this list for comparisson: https://primes.utm.edu/lists/small/1000.txt . When diff'd with to a file with my answer it shows no diferences.
Oh, it looks better with the getter and setter on their own functions, much more readable.