Start at the center of a square and spiral outwards, inverting bits whose positions correspond to prime numbers:
Return to the PrimeSpiral Java Applet page. Return to the PrimeSpiral JavaScript page.