Project: Prime Spiral¶
An Prime Spiral is produced by writing a rectangular grid of numbers, starting at 1 and spiraling out as follows:
Project Description¶
Using the matplotlib plot function, plot just the points on this grid which correspond to prime numbers (shown in red above).
- Plot a large grid, at least 50 x 50.
- What kinds of patterns can you see in the image?
- Experiment with different marker styles, sizes and colors until you find some that show the patterns best.
- How can these patterns be described mathematically?
- Can you give reasons why any of these patterns might occur?