def least_divisor(num, floor=2):
    """
    Find the least divisor of a number, above some floor.
    """
    assert num >= floor
    trial = floor
    while num % trial != 0:
        trial += 1
    return trial