aboutsummaryrefslogtreecommitdiffstats
path: root/largestprime.py
diff options
context:
space:
mode:
Diffstat (limited to 'largestprime.py')
-rw-r--r--largestprime.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/largestprime.py b/largestprime.py
deleted file mode 100644
index 387de01..0000000
--- a/largestprime.py
+++ /dev/null
@@ -1,16 +0,0 @@
-import PIL
-import math
-# Problem 3 Largest Prime Factor
-def lpf(number):
- factor = 2
- while (number > factor):
- if(number % factor == 0):
- number = number/factor
- factor = 2
- else:
- factor += 1
- return factor
-
-
-out = lpf(600851475143)
-print(out)