Procházet zdrojové kódy

Start sieve algorithm

Petra Lamborn před 5 roky
rodič
revize
735a0ff32b
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. 9
    0
      sieve.py

+ 9
- 0
sieve.py Zobrazit soubor

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