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