mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
chg: [type] Changed the way the dict in erotosthenes funtion is typed.
This commit is contained in:
parent
3fd55e2e79
commit
c12b371e7d
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ def eratosthenes() -> Iterator[int]:
|
||||||
"""Generate the prime numbers with the sieve of Eratosthenes.
|
"""Generate the prime numbers with the sieve of Eratosthenes.
|
||||||
https://oeis.org/A000040
|
https://oeis.org/A000040
|
||||||
"""
|
"""
|
||||||
d = {} # type: Dict[int, List[int]]
|
d: Dict[int, List[int]] = {}
|
||||||
for i in itertools.count(2):
|
for i in itertools.count(2):
|
||||||
if i in d:
|
if i in d:
|
||||||
for j in d[i]:
|
for j in d[i]:
|
||||||
|
|
Loading…
Add table
Reference in a new issue