We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 899870b commit e242485Copy full SHA for e242485
project_euler/problem_27/problem_27_sol1.py renamed to project_euler/problem_27/sol1.py
@@ -1,4 +1,9 @@
1
"""
2
+Project Euler Problem 27
3
+https://projecteuler.net/problem=27
4
+
5
+Problem Statement:
6
7
Euler discovered the remarkable quadratic formula:
8
n2 + n + 41
9
It turns out that the formula will produce 40 primes for the consecutive values
@@ -37,7 +42,7 @@ def is_prime(k: int) -> bool:
37
42
return True
38
43
39
44
40
-def solution(a_limit: int, b_limit: int) -> int:
45
+def solution(a_limit: int = 1000, b_limit: int = 1000) -> int:
41
46
47
>>> solution(1000, 1000)
48
-59231
0 commit comments