N,K=list(map(int,input().split()))

if K==0:

  print((N**2))

  exit(0)

ans=0

for i in range(K+1,N+1):

  cur=0

  base=i-(K-1)-1

  cur+=(N//i)*base

  rest=N%i

  cur+=max(rest-(K-1),0)

  ans+=cur

print(ans)
N,K=list(map(int,input().split()))

if K==0:

  print((N**2))

  exit(0)

ans=0

for i in range(K+1,N+1):

  base=i-(K-1)-1

  ans+=(N//i)*base

  rest=N%i

  ans+=max(rest-(K-1),0)

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

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

-    cur = 0 -    cur += (N // i) * base +    ans += (N // i) * base -    cur += max(rest - (K - 1), 0) -    ans += cur +    ans += max(rest - (K - 1), 0)