diff --git a/project_euler/problem_009/sol1.py b/project_euler/problem_009/sol1.py
index a58ea943e..c50dfeecf 100644
--- a/project_euler/problem_009/sol1.py
+++ b/project_euler/problem_009/sol1.py
@@ -25,18 +25,16 @@ def solution() -> int:
       2. a**2 + b**2 = c**2
       3. a + b + c = 1000
 
-    # The code below has been commented due to slow execution affecting Travis.
-    # >>> solution()
-    # 31875000
+    >>> solution()
+    31875000
     """
 
     for a in range(300):
-        for b in range(400):
-            for c in range(500):
-                if a < b < c:
+        for b in range(a + 1, 400):
+            for c in range(b + 1, 500):
+                if (a + b + c) == 1000:
                     if (a ** 2) + (b ** 2) == (c ** 2):
-                        if (a + b + c) == 1000:
-                            return a * b * c
+                        return a * b * c
 
 
 def solution_fast() -> int:
@@ -47,9 +45,8 @@ def solution_fast() -> int:
       2. a**2 + b**2 = c**2
       3. a + b + c = 1000
 
-    # The code below has been commented due to slow execution affecting Travis.
-    # >>> solution_fast()
-    # 31875000
+    >>> solution_fast()
+    31875000
     """
 
     for a in range(300):