Live data from Hacker News

Show HN: Prime Number Grid Visualizer

enda.sh

31–40 of 53 posts

Re: Show HN: Prime Number Grid Visualizer

#31
It'd be great to be able to plot only the primes that satisfy some simple (at first anyways) math operations. "Show me the primes that when (math operation) by (a set of values) equals (set of results). EG when (mult,div,squared) by (n1,n2...) equals (0,e^2, ...). Exploring for surprise patterns!

Re: Show HN: Prime Number Grid Visualizer

#39
post #24
post #19

When choosing rows = 4000 and columns = 546, an interesting pattern emerges. 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 ex…

Nothing too surprising more or less same thing as all other vertical columns. 546=2*3*7*13 and all numbers in the range [242, 250] can be divided by one of those 4 primes same for [296, 304] . If x is divisor of a and b, then it will also divide a+n*b meaning you get an empty column. 2 and 3 already makes more than half the columns non primes, fill in the gaps with few more primes and you get the wide empty columns.…

Thank you.

Re: Show HN: Prime Number Grid Visualizer

#40
post #3

So cool! I'd like to be able to start at any number

Thanks! Do you mean you’d like to be able to input any number you like? The numbered values are editable inputs. You can click into them and type in the amount you’d like. If you couldn’t tell they were editable inputs, that’s valuable feedback! I’ll redesign them to make it more obvious that you can do so, and don’t have to just click the +/- buttons.

No, I mean the starting prime number.
Post reply on HN