I wonder if it is possible to construct a spiral such that all the primes lie on a single radial line. Perhaps it is such that as the number of radial lines increases, a greater proportion of the primes lies on a single radial line.
Off the top of my head, for the given spiral, one radial line has mostly primes, some perfect squares, and some multiples of 5. The other has mostly primes, some multiples of 5, and some semiprimes.
In either case, it is easy to determine primality for any positive integer x. That is, if x is of the form 6n + 1, check if it is a perfect square or a multiple of 5. If x is of the form 6n - 1, check if it is a multiple of 5.
That seems like a more efficient primality test to me.


No comments:
Post a Comment