Wednesday, January 11, 2012

primes on a log spiral

Since looking again at Theodore Andrea Cook's The Curves of Life a few posts back I've been planning on playing with logarithmic spirals, which are identified in that book as the type of spiral that you often encounter in nature and in architecture. I was inspired to finally spend some time with them after reading a recent post on Math Hombre.


For fun I treated the curve like a number line and plotted prime numbers on it  using Processing. It seems to me that a nice thing about curling up the number line is that it allows you to take in more of the line at a glance. You can notice both the (seemingly) increasing gaps that occur between primes, as well as the (apparent) persistent occurrence of twin primes.