Type in the amount of primes you want then enter it. Made for a competition.
Apparently some update happened on scratch and this project got a lot slower for some reason. Magicians never reveal their secrets. Tests: 200,000 Primes: 75.18 seconds. Goal for v2: 60 seconds 100,000 Primes: ~27.2 seconds. Goal for v2: 20 seconds 10,000 Primes: ~0.8 seconds. Goal for v2: 0.5 seconds