From e51a602c871bea60770afc9ac7669ccf2690704d Mon Sep 17 00:00:00 2001 From: JellyWX Date: Wed, 21 Jun 2017 16:39:31 +0100 Subject: [PATCH] initial --- problem3.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 problem3.py diff --git a/problem3.py b/problem3.py new file mode 100644 index 0000000..09b37f3 --- /dev/null +++ b/problem3.py @@ -0,0 +1,12 @@ +prime = 13195 +current_num = prime +factors = [] + +while current_num != 1: + for i in range(2,current_num + 1): + if current_num % i == 0: + print('got a hit: ' + str(current_num) + str(factors)) + factors.append(i) + current_num /= i + +print(factors)