From 205f4bd4ad48a3f900e29abdeb8f61357a55fa39 Mon Sep 17 00:00:00 2001 From: Lauchmelder23 Date: Tue, 9 Oct 2018 20:25:40 +0200 Subject: [PATCH] Edited Problem 3 --- Problem_3.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Problem_3.py b/Problem_3.py index 69111d6..83760e9 100644 --- a/Problem_3.py +++ b/Problem_3.py @@ -9,7 +9,6 @@ primes = [1] original = 600851475143 for x in range(1, int(original / 2)): - print(x) tester = 600851475143 for prime in primes: tester /= prime @@ -21,5 +20,5 @@ for x in range(1, int(original / 2)): primes.append(x) original /= x -print("{}".format(primes)) +print("{}".format(primes[len(primes) - 1])) # Solution: 6857