import math
a, b = [int(i) for i in input().split(" ")]

total = 0

def get_divisor_count(num):
    divs = 0
    for i in range(1, int(math.sqrt(num)) + 1):
        if num % i == 0:
            if num / i == i:
                divs += 1
            else:
                divs += 2
    return divs

for i in range(a, b + 1):
    total += get_divisor_count(i)

print(total)
