Skip to content

Commit f676055

Browse files
Add typing to maths/segmented_sieve.py (TheAlgorithms#7054)
1 parent e272b9d commit f676055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/segmented_sieve.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import math
44

55

6-
def sieve(n):
6+
def sieve(n: int) -> list[int]:
77
"""Segmented Sieve."""
88
in_prime = []
99
start = 2

0 commit comments

Comments
 (0)