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 e07f4d1 commit 31d63a1Copy full SHA for 31d63a1
1 file changed
ciphers/sha256.py
@@ -232,7 +232,7 @@ def is_prime(num_to_test: int) -> bool:
232
return all(num_to_test % f != 0 for f in range(2, math.isqrt(num_to_test) + 1))
233
234
235
-def first_n_primes(count_primes: int):
+def first_n_primes(count_primes: int) -> list[int]:
236
"""
237
Generates the first n prime numbers using itertools.count and a primality test.
238
Examples:
0 commit comments