def gen_pows(a, b):
    """all distinct combs of a^b"""
    s = set()
    for x in range(2, a + 1):
        for y in range(2, b + 1):
            s.add(x ** y)
    return s

0ff03a316c63b7f0203810aabf3a9ccc06b6bd46
<mask token>

def gen_pows(a, b):
    """all distinct combs of a^b"""
    s = set()
    for x in range(2, a + 1):
        for y in range(2, b + 1):
            s.add(x ** y)
    return s
