Browse Source

Start sieve algorithm

Petra Lamborn 5 years ago
parent
commit
735a0ff32b
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      sieve.py

+ 9
- 0
sieve.py View File

@@ -0,0 +1,9 @@
1
+# Sieve of what'shisname, in python
2
+
3
+def sieve(to):
4
+    """Construct a sieve of Erastowhatsit up to the value of to; return all
5
+    primes below this number.
6
+    """
7
+    # Need to find out how to initialise vector/array/list whatever
8
+    # numpy.zeros
9
+