From c1a037eaa8198935dd4bf5f20e8df398f5f0d910 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Tue, 4 Feb 2020 20:17:47 -0500 Subject: more cleanup, more c examples --- sumofprimes.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'sumofprimes.py') diff --git a/sumofprimes.py b/sumofprimes.py index e85e394..d0db224 100644 --- a/sumofprimes.py +++ b/sumofprimes.py @@ -2,23 +2,6 @@ import PIL import math # Problem 10 sum of primes -###INEFFICIENT### -# def isPrime(number): -# if (number <=1): -# return False -# for i in range(2,number): -# if(number%i==0): -# return False -# return True - -# def prime_factors(number): -#primes = [] -# for i in range(number, 2, -1): -# if(number%i==0): -# if (isPrime(i)): -# return i -# return primes - def prime_factors(number): primes = [] -- cgit v1.2.3