Start at the center of a square and spiral outwards, inverting bits whose positions correspond to prime numbers:

GIF Image of Prime Spiral explanation

Return to the PrimeSpiral Java Applet page.
Return to the PrimeSpiral JavaScript page.