Add typing to maths/segmented_sieve.py (#7054)

This commit is contained in:
Saksham Chawla
2022-10-12 22:19:49 +05:30
committed by GitHub
parent e272b9d6a4
commit f676055bc6

View File

@ -3,7 +3,7 @@
import math
def sieve(n):
def sieve(n: int) -> list[int]:
"""Segmented Sieve."""
in_prime = []
start = 2