import java.util.*
fun main(args: Array<String>){
	val cin = Scanner(System.`in`)
    val n = cin.nextInt()
    val k = cin.nextInt()
    var ans: Long = 0
    for (b in k+1..n) {
        val x_max = n / b
        val r_min = k
        val r_max = b - 1
        ans += x_max * (r_max - r_min + 1)
        val exd = n - b * x_max
        if (exd >= r_min) {
            ans += exd - r_min + 1
        }
    }
    if (k == 0) {
        ans = n.toLong() * n.toLong()
    }
    println(ans)
}