We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21977f7 commit ce8598fCopy full SHA for ce8598f
project_euler/problem_007/sol2.py
@@ -73,7 +73,7 @@ def solution(nth: int = 10001) -> int:
73
raise TypeError("Parameter nth must be int or castable to int.") from None
74
if nth <= 0:
75
raise ValueError("Parameter nth must be greater than or equal to one.")
76
- primes = []
+ primes: list[int] = []
77
num = 2
78
while len(primes) < nth:
79
if isprime(num):
0 commit comments