7 ms·
What would it look like if instead of a binary coloring, you used a gradient coloring representing the number of primes in each range?
by evancox100 8y ago
What would it look like if instead of a binary coloring, you used a gradient coloring representing the number of primes in each range?
- sixstringtheory 8y agoI played around with the cool demo posted by no_gravity: https://news.ycombinator.com/item?id=17104652 https://news.ycombinator.com/item?id=17104652 replace the source with the one I dropped here and hit Go: https://pastebin.com/aw9nRmeZ https://pastebin.com/aw9nRmeZ It's actually fun to run the original first and then watch the colors overlay on top of it.
- macawfish 8y agoThank you! I tried doing this with the observablehq version and got really "lost in the Ulam Spiral" of opening and closing functions.
- OmIsMyShield 8y agoI fiddled with your version and changed the colours to a heatmap-like colour scheme adapted from https://stackoverflow.com/questions/12875486/what-is-the-algorithm-to-create-colors-for-a-heatmap https://stackoverflow.com/questions/12875486/what-is-the-alg... This shows the pattern again:https://imgur.com/qR4iGJb https://imgur.com/qR4iGJb Further fiddling ~shows~ highlights more patterns: https://imgur.com/a/Yjln2RX https://imgur.com/a/Yjln2RX