mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 06:33:44 +00: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