The Ulam Spiral

Megan Schmidt got playing around with number patterns charted out on a square number spiral to see what visual pattern results. Super fun and very mathematical. After I [url=]made a sketch[/url] to do her investigation, I realized I got [url=]the Ulam Spiral[/url] basically for free.[br][br]K controls the length of the spiral, 1 to K.[br][br]The check number lets you locate a particular value and see if it's prime.[br][br]The command to find spot n in the spiral is spiralspot[n].

Information: The Ulam Spiral