WTF is this?

The images you see on this blog are output from various Ulam spiral generators I built in Flash, Python and most recently using Arduino. Generally, each dot in an image represents a number with integer 1 at center. In addition to writing algorithms to test each number for primality within a set I have discovered that an infinite number of calculations can be performed to create new designs and animation algorithms. The simplicity and speed of these algorithms make them an ideal fit for embedded systems graphics, scientific, mathematical and artistic explorations.

Tuesday, June 17, 2008

Images of Phi Part II

A Ulam spiral testing each number for if(Math.round((n * Math.PI)/1.618)%9==0)



Same idea, swapping out mod 9 with mod 5:



Calculation per dot: (Math.round(Math.sqrt(Math.pow(n,2))*1.618/2)%5==0)




Calculation per dot: (Math.round(Math.sqrt(n*1.618)/2)%5==0)



Calculation per dot: (Math.round(Math.sqrt(n*1.618))%5==0)





Calculation per dot: (Math.round(Math.sqrt(n*2))%5==0)




Here are the selected primes up to 13693 from the previous image.