def create_pentagon_numbers(limit):
    """Return a set of pentagon numbers up to limit."""
    pentagons = {0}
    increment = 1
    value = 0
    while True:
        value += increment
        increment += 3
        if value > limit:
            break
        pentagons.add(value)
    return pentagons