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