The concept of Ulam's prime spiral was described to Christopher Schmidt and myself (among others) by Alan Perlis when we were undergraduates at Yale (circa 1980).
We implemented this program on several different workstations. Our first implementation was in Interlisp on the Xerox 1100 in 1983. In February 1990, Christopher Schmidt and Richard Acuff reimplemented the program under CommonLisp for the Macintosh (Procyon CommonLisp), and TI microExplorer and Explorer II, as well as the Xerox 1186 running Xerox CommonLisp.
I subsequently did a NeXT implementation which was our first non-Lisp port of the program. It's available as a combined package with both Objective-C and Objective-C++ variants on the public NeXT archives. (The Objective-C version is the basis of the later Java implementation.) I reduced the program to a non-object C version for use under X-windows and that variant was later ported to a pen-based notebook computer by David Braun.
Since I started teaching programming, I've added a Java implementation, a Perl/Tk version and most recently, a JavaScript rendering!
Return to the PrimeSpiral Java Applet page.
Return to the PrimeSpiral JavaScript page.