4 ms·
This made me curious, so I wrote a javascript version that renders a larger image of it: http://www.gibney.de/parallax_primes http://www.gibney.de/parallax_pri
by no_gravity 8y ago
This made me curious, so I wrote a javascript version that renders a larger image of it:
http://www.gibney.de/parallax_primes http://www.gibney.de/parallax_primes
- vietjtnguyen 8y agoUsing your frames here's the sequence as N goes from 2 to 90 with a stride of 2: https://streamable.com/l7r96 https://streamable.com/l7r96
- infogulch 8y agoThis is what I wanted to see! Like others have said this looks like it approaches that image as N grows large.
- vadansky 8y agoSo does the pattern work or not? People are saying it's not plotting primes, but there is clearly a prime check in this code
- _rpd 8y agoThe original pattern uses prime check (as per this code). OP claimed an exact match with http://oeis.org/A054521 http://oeis.org/A054521 - but this isn't true for many N (see vietjtnguyen's streamable). Perhaps it approaches it as N grows large?
- deleted 8y ago[deleted]
- acmegeek 8y agoI really liked your approach. I made a few modifications. http://htmlpreview.github.io/?https://github.com/acmegeek/primes/blob/master/index.html http://htmlpreview.github.io/?https://github.com/acmegeek/pr... I changed it to render with circles vs squares, and have them stack nicely. Also, have the variables more isolated to test. Also, it counts how many primes are within a pack, and assigns the color proportionately. This is still a work in progress.
- chrisws 8y agoI made a version of your program in SmallBASIC: https://raw.githubusercontent.com/smallbasic/smallbasic.github.io/master/samples/node/5002.bas https://raw.githubusercontent.com/smallbasic/smallbasic.gith... I found with packSize less than about 20 the shapes vary, then increasing values of packSize results in two alternating sets of shapes.