On the other hand, if you have some reason to actually generate the spirals incrementally, you could try something like
//
//Direction of the result is clockwise out from the center.
...
Type: Posts; User: Zaphod_b
On the other hand, if you have some reason to actually generate the spirals incrementally, you could try something like
//
//Direction of the result is clockwise out from the center.
...
Well, for starters, you are only going to test elements on the diagonal and antidiagonal for primality, so why bother to wrap yourself around in circles generating entire arrays? Just look at the...