n,k=list(map(int,input().split()))

c=0

for b in range(k+1,n+1):

  c+=n//b*(b-k)+max(n%b-k+1,0)-(k<1)

print(c)
n,k=list(map(int,input().split()))

print((sum(n//b*(b-k)+max(n%b-k+1,0)-(k<1) for b in range(k+1,n+1))))
n, k = list(map(int, input().split()))
c = 0
for b in range(k + 1, n + 1):
    c += n // b * (b - k) + max(n % b - k + 1, 0) - (k < 1)
print(c)

n, k = list(map(int, input().split()))
print(
    (
        sum(
            n // b * (b - k) + max(n % b - k + 1, 0) - (k < 1)
            for b in range(k + 1, n + 1)
        )
    )
)

-c = 0 -for b in range(k + 1, n + 1): -    c += n // b * (b - k) + max(n % b - k + 1, 0) - (k < 1) -print(c) +print( +    ( +        sum( +            n // b * (b - k) + max(n % b - k + 1, 0) - (k < 1) +            for b in range(k + 1, n + 1) +        ) +    ) +)