Petro Protsyk personal page
Turbulent "Life" of Primes
Your browser does not support the HTML5 canvas tag.
Use a,d,w,s keys to move the pattern.

This beautiful pattern is made from prime numbers. Positions (x,y) of each black pixel satisfy the following condition: x xor y - is a prime number.

There are many posibilities to generate patterns using similar approach. For example, by changing condition to the following: x xor y is divisible by 3, 5, 7, etc

Your browser does not support the HTML5 canvas tag. Your browser does not support the HTML5 canvas tag. Your browser does not support the HTML5 canvas tag.

What if we use these patterns as initial configurations in Conway's Game of Life?
Let's draw live cells in blue and black. Cells that belong to initial state will be colored in blue.

Your browser does not support the HTML5 canvas tag.
Step: initial

to start/stop the game or use B, N to move to the next turn and R to reset. The first configuration, after about 770 steps becomes stable and only few intial pixels survive.

Variants of the initial configuration:

References

Last updated: 17.08.2018,
created: 04.08.2018.