Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shrianshchari/prime-spiral
Prime spiral implemented in Python
https://github.com/shrianshchari/prime-spiral
Last synced: 23 days ago
JSON representation
Prime spiral implemented in Python
- Host: GitHub
- URL: https://github.com/shrianshchari/prime-spiral
- Owner: shrianshChari
- Created: 2022-02-25T05:29:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T15:41:59.000Z (almost 2 years ago)
- Last Synced: 2023-03-09T22:37:04.873Z (almost 2 years ago)
- Language: Python
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prime-spiral
Prime spiral (also known as Ulam's spiral) implemented in Python using `turtle`Saw [this video](https://www.youtube.com/watch?v=a35KWEjRvc0) 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](./images/spiral.png)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](./images/spiral2.png)
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](./images/spiral3.png)
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.