object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N, K = sc.nextInt

  var sum = 0

  for (a <- 1 to N) {
    for (b <- K + 1 to N) {
      if (a % b >= K) sum += 1
    }
  }

  println(sum)
}