News for hackers. Stuff that matters.
Re:An Interesting Pattern in the Prime Numbers: Parallax Com... by drdeca on Friday May 18, 2018 @04:00PM (#17104533)
I am a little confused. When it says that each square corresponds to n sequential numbers, does it mean that the first square is the first n, and the second square (which is on the second row) is the first n after those, and the third square (also in the second row) has the first n after those, and so on,

Or, do the regions overlap?

I tried to look at the first 4 rows for n=5, but did not see the pattern depicted (each interval had a prime in it).

Am I interpreting what is meant by the blocks incorrectly, or does the pattern not work for small enough n?

Re:An Interesting Pattern in the Prime Numbers: Parallax Com... by chickenstrips on Friday May 18, 2018 @04:02PM (#17104543)
For fixed n, a block (x,y) contains the numbers n/2y^2-n/2y + yz + x for all 0 <= z < n.
Re:An Interesting Pattern in the Prime Numbers: Parallax Com... by drdeca on Friday May 18, 2018 @04:48PM (#17104826)
Making sure I am parsing that correctly:

Is that

((n/2) * y^2) - ((n/2) * y) + (y * z) + x ? (For z ranging from 0 to n)

If so, alright, that makes more sense to me, thanks.

So, n * (y * (y-1)/2) + x + y * z ?

Edit: does HN have an escape character to deal with the asterisks?

Re:An Interesting Pattern in the Prime Numbers: Parallax Com... by dEnigma on Friday May 18, 2018 @10:53PM (#17106374)
Having whitespace after the asterisk or indenting the line by two or more spaces seem to be the only possibilities according to the "Formatting Options"[1]

[1]https://news.ycombinator.com/formatdoc

Re:An Interesting Pattern in the Prime Numbers: Parallax Com... by SomeMathComment on Friday May 18, 2018 @04:47PM (#17104822)
(n/2)y^2-(n/2)y + yz + x