summaryrefslogtreecommitdiff
path: root/day1/exercise/pytriads.py
diff options
context:
space:
mode:
Diffstat (limited to 'day1/exercise/pytriads.py')
-rw-r--r--day1/exercise/pytriads.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/day1/exercise/pytriads.py b/day1/exercise/pytriads.py
index bea543d..caf9137 100644
--- a/day1/exercise/pytriads.py
+++ b/day1/exercise/pytriads.py
@@ -10,8 +10,8 @@ def gcd(a, b):
else:
return gcd(b, a%b)
-for a in range(3, 501):
- for b in range( a+1, 501, 2):
+for a in range(3, 101):
+ for b in range( a+1, 101, 2):
if gcd( a, b ) == 1:
is_ps, c = is_perfect_square((a * a) + (b * b))
if is_ps: print a, b, c