Explorar o código

Fixed error in 50

Taddeus Kroes %!s(int64=13) %!d(string=hai) anos
pai
achega
29bb1d9084
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      problem50.py

+ 1 - 1
problem50.py

@@ -14,7 +14,7 @@ def maxprime(n):
             s = sum(conseq)
 
             if s >= 1000000:
-                return maxp
+                break
 
             if s in primes[start + maxlen:]:
                 maxlen = end - start