WARNING! Will not work on slow computers!Needs Turbowarp to calculate big numbers. Link is this: https://turbowarp.org/1366448316 You have to wait until "I"(the variable)=your selected number+1.
On Turbowarp, It calculates up to 100 primes per second. While on scratch, it only calculates up to 50 primes per second. Lags out at 1500th prime on scratch(2500th on Turbo warp) but it will continue to calculate.