This is a project that shows Ulam Spiral, written in C++ using Cocos2d framework.
Cmake 3.6 Visual Studio 17 2022 Target: Windows
You can change parameters to have different visual:
- circleSize: Size of the circle we put for prime numbers.
- limit: Draw circles up to this limit. Example: 250.000
Example: Prime numbers up to 250,000
References:
- The Prime Number Spiral (Coding Challenge 167) https://www.youtube.com/watch?v=a35KWEjRvc0&t=685s
- https://en.wikipedia.org/wiki/Ulam_spiral