import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;

public class Garden {

    public static void main(String[] args) {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int a, b, c , d;
        int len;
        try {
            String[] line = br.readLine().split("\\s+");
            a = Integer.parseInt(line[0]);
            b = Integer.parseInt(line[1]);

            int count = 0;
            for (int i = a; i <= b; i++) {
                ++count;
                for (int j = i; j >= 2; j--) {
                    if (i % j == 0) {
                        ++count;
                    }
                }
            }

            System.out.println(count);
        }
        catch (IOException e) {
            e.printStackTrace();
        }
    }
}

