local n, k = io.read("*n", "*n")
local c = 0
if b == 0 then
  print(n * n)
else
  for b = k + 1, n do
    local x, y = n // b, n % b
    c = c + (b - k) * x
    if 0 < y then
      c = c + math.max(0, y - k + 1)
    end
  end
  print(c)
end
