소스 검색

Start sieve algorithm

Petra Lamborn 5 년 전
부모
커밋
735a0ff32b
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9
    0
      sieve.py

+ 9
- 0
sieve.py 파일 보기

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