Prime Phyllotaxis Spirals

The phyllotaxis spiral is one of the classical forms of mathematics, and there is a wonderland of resources available online both images and explanations. The basic idea is to put points round in a spiral with the same angle between each point. This gives a family of forms:

Note that, as the angle changes the dots sometimes pack in better than others, this can actually be studied and the best packing is related to the golden ratio. The points in this spiral are placed down in order, so we can associate each to a whole number:

Now when I see a lit of numbers like this, I want to pull out the primes, see what pattern they make:

There are some hints at patterns, lets expand out, and look just at dots:

There seem to be spiral arms which are richer in prime numbers than others. We can analyse things further by colouring each number depending on its prime factors. The more prime factors the lighter the number, giving the image for the start of this post:

Now there is a clear pattern, light and dark arms spiraling out. Can we understand this pattern?

Think about the construction of a phyllotaxis pattern we turn the same angle every time, that means within a particular pattern we can find other phyllotaxis patterns. The one at twice the speed, three times the speed and so on.  For example we could dive our pattern into two patterns each with twice the rotation angle. This gives:

All prime number (other than 2) are odd, so they must lie on the subspiral corresponding to the odd numbers. In addition it turns out that the spiral arms that we see are related to the Fibonacci numbers (themselves closely linked to the Golden Ratio). The particular curves we see relate to 144. Here is the spiral given by multiples of 144, pulling out just one such curve:

Note that in the prime factor picture this curve gives a very light line as every number in it is a multiple of 144, and 144 itself has 6 prime factors (three twice and two four times). Taking the multiples of 6 instead of 144 (which gives us several of these curves as 6 divides 144) we see another pattern of lines that are light in the image:

More importantly the curves next to these ones give numbers one more or less than a multiple of six. Every prime number has this form (all other numbers are multiples of 2 or 3 or both). This gives the curves of prime numbers we saw.

So by considering the construction of the initial image it begins to reveal its secrets. Yet, just as with the primes on their own there seems to be plenty of mystery left for investigation…