3 ms·
UPDATE - Saturday May 19 The drawing has been updated on the blog post cited above; there was an error in the description of it, this has been clarified and t
by airesearcher 8y ago
UPDATE - Saturday May 19
The drawing has been updated on the blog post cited above; there was an error in the description of it, this has been clarified and the code has been updated as well
Join the Telegram group to discuss: https://t.me/joinchat/G8AnchIna2q8yn1lGHirkA https://t.me/joinchat/G8AnchIna2q8yn1lGHirkA
Note that Even and Odd Values of N have a very different pattern.
For example try using the values 99 and 99, and then 100 and 100, in this HTML PREVIEW VERSION:
https://htmlpreview.github.io/?https://github.com/acmegeek/primes/blob/master/index.html?11 https://htmlpreview.github.io/?https://github.com/acmegeek/p...
CODE TO TRY:
Javascript https://beta.observablehq.com/@montyxcantsin/unwinding-the-ulam-spiral https://beta.observablehq.com/@montyxcantsin/unwinding-the-u...
Mathematica https://github.com/shaunxcode/a-pattern-in-the-primes https://github.com/shaunxcode/a-pattern-in-the-primes
Perl https://www.dropbox.com/s/z5tfub5geyuctex/prime-draw.pl?dl=0 https://www.dropbox.com/s/z5tfub5geyuctex/prime-draw.pl?dl=0
EXPLANATION:
In short, actually there are some curious patterns in this, and they are not simply equivalent to OEIS A054521 (as we, and others, initially thought they were).
For even values of n, they seem to approach the OEIS A054521 sequence as n increases. But for odd values the pattern is different and OEIS A054521 doesn't describe it at all. More discussion of this on the Telegram group...