Ulam Spiral

Inspired from Numberphile
Source here

Creates an Ulam spiral of the specified size and starting point. It knows
the first 10,000 primes (2 - 104,729). The primes were copied from primos.mat.br

It's been a long long while since I did me some js dev, so this is a bit rough around the edges but it was a fun exercise.

Oh, and btw, each time you click "go" it just adds a table to the page. You'll have to scroll down to see it after awhile.
You can refresh the page the clear it. Also, it uses tables...so, it's not the most responsive thing.

Size

Start