def two_prime_factors(pfix=65537):
    for p in eratosthenes():
        yield pfix * p
Yields numbers with 2 prime factors pfix and p.
dataset/ETHPy150Open borgbackup/borg/borg/hash_sizes.py/two_prime_factors