def composite() -> Iterator[int]:
    """Generate the composite numbers using the sieve of Eratosthenes.
    https://oeis.org/A002808
    """
    p1 = 3
    for p2 in eratosthenes():
        for n in range(p1 + 1, p2):
            yield n
        p1 = p2
def composite ( ) -> Iterator [ int ] : p1 = 3 for p2 in eratosthenes ( ) : for n in range ( p1 + 1 , p2 ) : yield n p1 = p2
Generate the composite numbers using the sieve of Eratosthenes.
    https://oeis.org/A002808