Show HN: Prime Number Grid Visualizer (enda.sh)
Hello HN. I made this simple little tool that let's you input rows and columns to create a grid, then it plots the grid with prime numbers.
I made it for fun, but I'd love suggestions on how I can improve it in any way. Thanks, love you.
25 comments
[ 2.6 ms ] story [ 63.9 ms ] threadI made a screen recording of it: https://n0ssc.com/wp-content/uploads/2025/08/prime-doublespe...
https://lemire.me/blog/2017/09/18/visiting-all-values-in-an-...
Check out 431 columns - this yields no obvious persistent patterns.
It's fun seeing all these patterns. I did some edit. I was thinking that skipping over numbers divisible by 2 and 5 will get rid of most visible gaps, but they keep emerging.
For all integers n ≥ 0, the ranges [243 + (n * 546)] to [249 + (n * 546)] inclusive appear to contain no prime numbers. Same with the ranges [297 + (n * 546)] to [303 + (n * 546)].
For both sets of ranges, the minimum gap between the closest neighbouring primes appears to be at least 10 (in decimal). Does anyone know of a number-theoretic explanation for this kind of pattern?
Perhaps a prime grid will generate a valid QR code that is itself a prime number in QR!