mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Add typing to maths/segmented_sieve.py (#7054)
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
import math
|
import math
|
||||||
|
|
||||||
|
|
||||||
def sieve(n):
|
def sieve(n: int) -> list[int]:
|
||||||
"""Segmented Sieve."""
|
"""Segmented Sieve."""
|
||||||
in_prime = []
|
in_prime = []
|
||||||
start = 2
|
start = 2
|
||||||
|
Reference in New Issue
Block a user