Explorar el Código

Start sieve algorithm

Petra Lamborn hace 5 años
padre
commit
735a0ff32b
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9
    0
      sieve.py

+ 9
- 0
sieve.py Ver fichero

@@ -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
+