3 ms·
The way the numbers are picked into the 75-number groups is responsible for pretty symmetry. If you replace condition isPrime() with simpler checks: "is not di
by scotty79 9y ago
The way the numbers are picked into the 75-number groups is responsible for pretty symmetry.
If you replace condition isPrime() with simpler checks: "is not divisible by 2" "is not divisible by 2 and 3" .. "... by 2, 3 and 5" .... "... by 2,3,5,7,13,17 and 23" ... you'll get more and more complex images but still symmetrical.
For me the whole thing is subtle hiding of messiness of primes into the strong, pretty, symmetrical shape which obscures the mess and just gets richer and more artistic due to that.
Experiment with the code provided by user no_gravity here: http://www.gibney.de/parallax_primes http://www.gibney.de/parallax_primes
By changing the contents of isPrime() function you can see how you get fooled into thinking there's order in primes by mixing messiness of primes into the order of number picking scheme.
- deleted 9y ago[deleted]
- no_gravity 9y agoI was thinking in the same direction but could not come up with a simple test. Your idea to start with "is not divisible by 2 .. 3 .. 4 .." is great. It's interesting, that up to 4, it's a perfect pattern: function isPrime(n) { return n%2 && n%3 && n%4; } As soon as you get to 'Not divisible by 5' noise starts to appear: function isPrime(n) { return n%2 && n%3 && n%4 && n%5; } This 'noise' closes some gaps between the pattern and makes it look like runes. Would any type of noise do this? Here is how it looks like with some random noise added: function isPrime(n) { return n%2 && n%3 && n%4 && (Math.random()>0.95); } It is not as structured as the version based on primes. As of now, I'm not sure what to make of it. Maybe there is some other type of simple 'noise' that creates something as complex and logical as the primes. Maybe not.