Pārlūkot izejas kodu

Start sieve algorithm

Petra Lamborn 5 gadus atpakaļ
vecāks
revīzija
735a0ff32b
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9
    0
      sieve.py

+ 9
- 0
sieve.py Parādīt failu

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