Ulam Spiral
en.wikipedia.org
en.wikipedia.org
The Ulam Spiral of Primes (2010) - https://news.ycombinator.com/item?id=17019533 - May 2018 (43 comments)
Ulam Spiral - https://news.ycombinator.com/item?id=11843990 - June 2016 (13 comments)
Ulam spiral - https://news.ycombinator.com/item?id=6703494 - Nov 2013 (27 comments)
The Ulam spiral: hidden structure among the prime numbers - https://news.ycombinator.com/item?id=2047857 - Dec 2010 (39 comments)
The Ulam Spiral of Primes - https://news.ycombinator.com/item?id=1452301 - June 2010 (36 comments)
x(n)=x(n-1)+sin(mod(int(sqrt(4*(n-2)+1)),4)*pi/2)
y(n)=y(n-1)-cos(mod(int(sqrt(4*(n-2)+1)),4)*pi/2)
Which can make something like generating enormous spirals very quick with a simple GPU shader.Note that the setup is slightly different,since in that video they plot numbers along their polar coordinates. The results are very similar, since both create spirals with predictable angular offsets.
https://upload.wikimedia.org/wikipedia/commons/c/c8/Gauss-pr...
( linked from: https://en.wikipedia.org/wiki/Gaussian_integer#Unsolved_prob... )
If you load that into MS Paint and use the fill tool with black color, all that remains are a few white dots. Diagonally, counting from zero at the center, there is a line with white pixels at 2, 5, 25, 30, 35, 70... which is https://oeis.org/A109306
In particular, can we find or test single-variable polynomials that produce an infinite number of different values, which don't all share a common factor, but which are all composite numbers (except possibly some primes near the start)?
How about x^2 ?
The second is pretty straightforward, e.g. (x+1)*(x+3) produces 3, 8, 15, 24, 35, 48, 63, 80, 99, 120, 143, 168, 195, 224, 255, 288, 323, 360, 399, etc. for x = 0, 1, 2, ....
I guess my question is whether there actually is a copyright here, or is it just maths?
I wonder what super secret representation of primes results in unknown patterns?