From 4a6894c1fa1b048aa7231561f6b6e6a5de62702c Mon Sep 17 00:00:00 2001 From: Rian Gallagher Date: Sun, 20 Nov 2016 22:11:50 +0000 Subject: [PATCH] Added Sieve of Eratosthenes for finding primes --- other/FindingPrimes.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/other/FindingPrimes.py b/other/FindingPrimes.py index aa6dfabb2..3cb10f701 100644 --- a/other/FindingPrimes.py +++ b/other/FindingPrimes.py @@ -16,6 +16,3 @@ def SOE(n): for i in range(n+1): if(sieve[i] == True): print(i, end=" ") - -n = int(input("Enter a positive number\n")) -SOE(n) \ No newline at end of file