You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Prime Numbers/README.md
+66-3Lines changed: 66 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
1
# Sieve Primes
2
2
3
+
## Sieve of Eratosthenes
3
4
Goal: To quickly get an array of prime numbers with a specified limit using the Sieve of Eratosthenes.
4
5
5
-
The Sieve of Eratosthenes is an algorithm that finds all primes numbers up to any given limit.
6
+
The Sieve of Eratosthenes is an algorithm that finds all primes numbers up to any given limit by iteratively marking composites of each prime starting with multiples of 2. [Seeing this algorithm][1] in action is the best way to understand it.
6
7
7
-
Here's an implementation in Swift that should be easy to understand:
0 commit comments