mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 22:23:42 +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
|
||||
|
||||
|
||||
def sieve(n):
|
||||
def sieve(n: int) -> list[int]:
|
||||
"""Segmented Sieve."""
|
||||
in_prime = []
|
||||
start = 2
|
||||
|
|
Loading…
Reference in New Issue
Block a user