Jonathan. Frech’s WebBlog

Primes (#42)

Jonathan Frech

Being fascinated with how prime spirals look, I tried another layout for primes. Starting at the upper left and writ­ing out numbers like a normal text, starting at 0 and coloring every prime num­ber red, every oth­er num­ber white, this is the result.

It is interesting, that — like in prime spirals — the red squares form visible patterns. Randomly assigned squares would not as often form such patterns.

Source code: primes.py