import std.stdio;
import std.range;
import std.array;
import std.algorithm;
import std.string;
import std.conv;

void main(){
    int[] inputs = readln.chomp().split.map!(to!int).array;
    immutable k = inputs[1];
    auto answer = 0;
    foreach(num1; iota(1, inputs[0]+1)) {
        foreach(num2; iota(1, inputs[0]+1)) {
            if(num1 % num2 >= k){
                answer++;
            }
        }
    }
    
    writeln(answer);
}