Inspired by this video by Daniel Shiffman I decided to give this one a try.
Implemented in C using SDL2 and compiled to WebAssembly using Emscripten.
TL;DR The idea of the Ulam spiral is that it renders a spiral placing marks (nodes) on every spot that is a prime number.
Prerequisites Assuming you have Emscripten installed
$ git clone git@github.com:Tmw/ulam.git && cd ulam
$ make serve &
$ makeThis will clone the repo, start the dev server in the background and start building the source.
See the live demo here.