aboutsummaryrefslogtreecommitdiffstats
path: root/largestprime.py
diff options
context:
space:
mode:
authormjfernez <mjfernez@gmail.com>2020-02-09 15:16:26 -0500
committermjfernez <mjfernez@gmail.com>2020-02-09 15:16:26 -0500
commit93ea7fe5957b62f18e8fbd17a21696bd7de6332d (patch)
treed90aed60d687bcf195f1150777f37cbe8a149814 /largestprime.py
parent125ec5bc3d8bfc224b7d32bcfbbc37b9fb5d441f (diff)
downloadProject_Euler_Solutions-93ea7fe5957b62f18e8fbd17a21696bd7de6332d.tar.gz
Organized everything, update README
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)