Open Source

The generator on this site runs entirely in your browser. This is done with a JavaScript version of my open-source Java library for spiral generation, prime sieving and image rendering.

Need something bigger than the 5,001 × 5,001 limit here? With enough memory, the library can compute spirals up to 46,339 × 46,339.

It's a standalone, framework-free library you can use in your own projects under the MIT license.

ulam-spiral/ulam-spiral-generatorhttps://github.com/ulam-spiral/ulam-spiral-generatorJavaMIT license

Found a bug or have an idea for an improvement? Feel free to open an issue / pull request on GitHub, or get in touch.