Skip to content

jeffvandyke/prime-number-spiral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prime Number Spiral

Also known as the Ulam spiral, this is a quick one-off to try my hand at a programming challenge I saw the introduction to on YouTube, and I find the pattern generated rather fascinating. It draws a pixel spiral of a number line where all prime numbers are colored black.

The variable pointScale may be customized in src/index.ts to change the visualization size.

To start:

  1. Run the following:
npm install
npm run dev
  1. View the visualization at the url printed in the console

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published