Jonathan. Frech’s WebBlog

Prime Spiral II (#48)

Jonathan Frech

My first attempt at making a prime spiral worked, but it worked with 90° angles. Trying to make it look smoother, I now used an angle and a distance, drawing circles at calculated position.
If the num­ber is prime, it gets white. If it is not, the circle will be gray.

Source code: prime-spiral-ii.py