Skip to content

Instantly share code, notes, and snippets.

@davewadestein
Created September 26, 2017 08:15
Show Gist options
  • Save davewadestein/5cd54c707e24595afdb9d64429f69d54 to your computer and use it in GitHub Desktop.
Save davewadestein/5cd54c707e24595afdb9d64429f69d54 to your computer and use it in GitHub Desktop.
## List Lab: Sieve of Eratosthenes
* create a list of the integers from 2 to 100
* start from 2, and remove all of its multiples
* next, remove all multiples of 3, 5, etc.
* when you're done, only primes will remain
* when to stop?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment