Hacker News new | ask | show | jobs
by BrainBacon 302 days ago
Not exactly the same, but I made this Ulam spiral generator more than a decade ago.

https://embed.plnkr.co/mdZX6C/

It isn't just doing primes though, instead the size of the dot generated is dependent on the number of even divisors for the number at that position.