A modern, interactive visualization of prime numbers arranged in a spiral pattern. This application allows you to explore the fascinating patterns that emerge when prime numbers are visualized in a spiral arrangement.
This has been rebuilt from 2D to a modern 3D view with AI.
Visit the live demo at https://akgupta89.github.io/prime-visualizer
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:3000 to view it in the browser.
The visualization is based on the concept of the Ulam spiral (named after Stanisław Ulam), which is a graphical depiction of prime numbers. It was discovered in 1963 and shows surprising patterns in the distribution of primes.
This application uses a polar variant where numbers are arranged in a spiral based on their square root, with the angle between consecutive numbers adjustable by the user.
To deploy to GitHub Pages:
npm run deploy
This project is licensed under the MIT License - see the LICENSE file for details.
- Stanisław Ulam for the original spiral concept
- The React and TypeScript communities for their excellent tools and documentation