
    Given a patient's total number of previous hospital visits, calculate their readmission risk score by finding the sum of all possible visit intervals that evenly divide into their total visit count. For example, a patient with 12 visits would have possible visit intervals of 1, 2, 3, 4, 6, and 12 visits, and their risk score would be the sum of these intervals.
    

    
def sum_div(number):
    """
    Given a patient's total number of previous hospital visits, calculate their readmission risk score by finding the sum of all possible visit intervals that evenly divide into their total visit count. For example, a patient with 12 visits would have possible visit intervals of 1, 2, 3, 4, 6, and 12 visits, and their risk score would be the sum of these intervals.
    

    """
def sum_div(number):
    """
    Given a patient's total number of previous hospital visits, calculate their readmission risk score by finding the sum of all possible visit intervals that evenly divide into their total visit count. For example, a patient with 12 visits would have possible visit intervals of 1, 2, 3, 4, 6, and 12 visits, and their risk score would be the sum of these intervals.
    

    """
    divisors = [1]
    for i in range(2, number):
        if number % i == 0:
            divisors.append(i)
    return sum(divisors)