Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 819 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 819 Bytes

prime-spiral

Prime spiral (also known as Ulam's spiral) implemented in Python using turtle

Saw this video by The Coding Train and thought it looked cool, and reasonable to implement myself.

Examples:

Prime spiral with max value 3600 without path lines, and dot radius 10

Prime spiral with max value 3600 without path lines, and dot radius 10

Prime spiral with max value 10,000 without path lines, and dot radius 5

Prime spiral with max value 10,000 without path lines, and dot radius 5

Prime spiral with max value 4000 with path lines, and dot radius 10

Prime spiral with max value 4000 with path lines, and dot radius 10

It is a bit slow but that's the nature of turtle graphics.