let inpt = readLine()!.split(separator: " ").map({Int($0)!})
let minAmari = inpt[1]
let maxNum = inpt[0]

var ans = 0
for i in minAmari + 1 ... maxNum {
    ans += i - minAmari
    let mulMax = maxNum / i
    for j in 1...mulMax {
        ans += max(0, min(maxNum + 1, i * (j + 1)) - (i*j+minAmari))
    }
}

print(ans)
