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

cnt = 0

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

    p = n//b

    r = n%b

    cnt += max(0, b-k)*p + max(0, r-k+1)

else:

    if k==0:

        cnt -= n

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

if k==0:

    print((n**2))

else:

    ans = 0

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

        ans += (n//b)*(b-k)

        if n%b>=k:

            ans += n%b-(k-1)

    print(ans)
n, k = list(map(int, input().split()))
cnt = 0
for b in range(1, n + 1):
    p = n // b
    r = n % b
    cnt += max(0, b - k) * p + max(0, r - k + 1)
else:
    if k == 0:
        cnt -= n
print(cnt)

n, k = list(map(int, input().split()))
if k == 0:
    print((n**2))
else:
    ans = 0
    for b in range(k, n + 1):
        ans += (n // b) * (b - k)
        if n % b >= k:
            ans += n % b - (k - 1)
    print(ans)

-cnt = 0 -for b in range(1, n + 1): -    p = n // b -    r = n % b -    cnt += max(0, b - k) * p + max(0, r - k + 1) +if k == 0: +    print((n**2)) -    if k == 0: -        cnt -= n -print(cnt) +    ans = 0 +    for b in range(k, n + 1): +        ans += (n // b) * (b - k) +        if n % b >= k: +            ans += n % b - (k - 1) +    print(ans)