I'm pretty sure that this the most systematic way of generating primes. If anyone spots a non-prime number or finds another possible optimization, please let me know.