An open API service indexing awesome lists of open source software.

https://github.com/nating/not-your-kitchen-sieve

2️⃣3️⃣ A graphical Sieve of Eratosthenes. 5️⃣7️⃣
https://github.com/nating/not-your-kitchen-sieve

java prime sieve-of-eratosthenes

Last synced: 2 months ago
JSON representation

2️⃣3️⃣ A graphical Sieve of Eratosthenes. 5️⃣7️⃣

Awesome Lists containing this project

README

        

# not-your-kitchen-sieve
A graphical representation of how the Sieve of Eratosthenes works. One of the first programs I wrote in my first year of Computer Science.

![Sieve](assets/Sieve.gif)

##Overview
The Sieve of Eratosthenes is a simple and efficient algorithm for finding small prime numbers. The user of the program can specify what number, N, they want all the primes beneath. Multiples of 1,2,3...√N are marked as not prime. Afterwards, all the non-marked numbers are known to be prime. This program makes use of the Standard Drawing Library, StdDraw.java.