Jonathan. Frech’s WebBlog

Prime Remainders (#79)

Jonathan Frech

This program calculates primes, takes their remainder⁠¹ and then places a color accordingly. The shapes are quiet interesting.⁠²

Controls

Source code: prime-remainders.py


[1]The formula for the color 𝑐 at prime 𝑝 with modulo 𝑚 is 𝑐 = 𝑝 mod 𝑚. (𝑚 = 10 on the left, 255 on the right and 500 on the bottom)
[2][2020-07-16] Looking back at it, I am quite surprised that I stumbled upon “analyzing” prime remainders back then, not knowing how deeply rooted in num­ber theory they are.