# Arup Guha
# 7/20/2026
# Code for COT 3100 Homework 8 Question 4

def numdiv(n):

    # Store answer here.
    res = 0

    # Do trial division.
    i = 1
    while i*i <= n:

        # Got a divisor.
        if n%i == 0:
            res += 1

            # See if this is unique or not.
            if n//i > i:
                res += 1

        # Go to next.
        i+= 1

    # Return the answer.
    return res

# Do our test.
def main():

    # Just add the number of divisors of each integer from 1 to 100 to
    # a set.
    unique = set()
    for i in range(1, 101):
        unique.add(numdiv(i))

    # Ta da!
    print("Unique # of div = ",len(unique))
    print("Possible values are", unique)

main()
