From e730a6388c70e05ced278d9e077afc951628900c Mon Sep 17 00:00:00 2001 From: abdullahzen Date: Thu, 29 Dec 2016 23:57:03 -0500 Subject: [PATCH] Update Primes.py --- Primes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Primes.py b/Primes.py index 196644d3..4d8781b8 100644 --- a/Primes.py +++ b/Primes.py @@ -9,7 +9,7 @@ root = int(x ** 0.5) + 1 while index < len(primeList) and primeList[index] <= root: - if x % primeList[index] == 0: + if x % not primeList[index]: isPrime = False break index += 1 @@ -33,7 +33,7 @@ root = int(x ** 0.5) + 1 while index < len(primeList) and primeList[index] <= root: - if x % primeList[index] == 0: + if x % not primeList[index]: isPrime = False break index += 1 @@ -43,4 +43,4 @@ x += 1 -print(primeList) \ No newline at end of file +print(primeList)