Ave run time: 25 sec. Click the green flag to run. This is a spiral of numbers like this 21 20 19 18 17 22 7 6 5 16 23 8 1 4 15 24 9 2 3 14 30 10 11 12 13 31 32 33 34 35 Then, all the primes are colored red and composites black. 21 20 19 18 17 22 7 6 5 16 23 8 1 4 15 24 9 2 3 14 30 10 11 12 13 31 32 33 34 35
Planning to reduce the run time to below 10 secs by only checking prime factors.