for @iamunknown2's code golf challenge. https://scratch.mit.edu/discuss/topic/112104/ update: huge time-saver, generating 10000 primes went from 80 seconds to 3-5 seconds.