Skip to content

Wheeler-Christian/UlamSpiral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UlamSpiral

Making an Ulam Spiral. With rainbow colors.

If you do not know what an Ulam Spiral is, it is a thing in mathematics, involving prime numbers. Look here to learn more: https://mathworld.wolfram.com/PrimeSpiral.html

The number 1 is gray so the eye knows where to start. The prime numbers are all black, as usual.

Every multiple of 2 is colored red -- (except for 2, because it is prime, and hence already black)

Every multiple of 3 is colored orange -- (except for numbers which are already colored, such as primes and multiples of 2)

Every multiple of 5 is colored yellow -- (except for numbers which are already colored, such as primes, and multiples of 2, 3)

Every multiple of 7 is colored green -- (except for numbers which are already colored, such as primes, and multiples of 2, 3, 5)

Every multiple of 11 is colored blue -- (except for numbers which are already colored, such as primes, and multiples of 2, 3, 5, 7)

p

About

Making an Ulam Spiral. With rainbow colors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published