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

if k==0:

    print((n**2));exit()

ans=0

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

    p=n//i

    q=n%i

    ans +=p*max(0,i-k)+max(0,q-k+1)

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

if k==0:print((n**2));exit()

ans=0

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

    ans +=n//i*max(0,i-k)+max(0,n%i-k+1)

print(ans)
n, k = list(map(int, input().split()))
if k == 0:
    print((n**2))
    exit()
ans = 0
for i in range(k + 1, n + 1):
    p = n // i
    q = n % i
    ans += p * max(0, i - k) + max(0, q - k + 1)
print(ans)

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

-    p = n // i -    q = n % i -    ans += p * max(0, i - k) + max(0, q - k + 1) +    ans += n // i * max(0, i - k) + max(0, n % i - k + 1)