Skip to content

shrianshChari/prime-spiral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Prime spiral implemented in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages