mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Add typing to maths/segmented_sieve.py (#7054)
This commit is contained in:
parent
e272b9d6a4
commit
f676055bc6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user