|
|
|
|
|
by jonp
5006 days ago
|
|
Here's a JavaScript/HTML5/Canvas version. You can view the first 100 diagrams in a grid or view the diagram for the N of your choice. There's also an option to view an alternative diagram where the drawing starts with the smallest prime instead of the smallest. http://jsfiddle.net/FEKX2/3/ |
|
http://jsfiddle.net/HEHHj/2/
It actually uses the last prime drawn, so it's only useful in 'smallest first' mode. That ought to be fixed, but I was lazy about it.
Colorizing the image based on the largest prime makes the pattern intelligible a little bit longer, before it becomes impossible to tell the big primes apart.