Mostly this is posted for its pleasantly recursive nature. In response to many people asking me how I made the Ulam Spiral, I have produced a a PDF of the spiral which includes the code to make said PDF. I really like how it turned out.

One subtle touch that fellow Python programmers will appreciate is that every column begins with a line of code that is not indented.









