#include <bits/stdc++.h>
using namespace std;
int get_months(int n) {
  int ret = 1;
  for (int i = 2; i * i <= n; ++i) {
    int cnt = 0;
    while (n % i == 0) {
      cnt++;
      n /= i;
    }
    if (cnt & 1) ret *= i;
  }
  return ret * n;
}
long long months[10000010];
int prime[10000010];
int main() {
  int A, N;
  cin >> A >> N;
  long long sum = 0;
  for (int i = 1; i <= 10000000; i++) months[i] = 1, prime[i] = 1;
  for (int i = 2; i <= 10000000; i++) {
    int cnt = 1;
    if (!prime[i]) continue;
    for (int j = 2 * i; j <= 10000000; j += i) prime[j] = 0;
    for (long long p = i; p <= 10000000; p *= i) {
      for (int j = p; j <= 10000000; j += p)
        if (cnt & 1)
          months[j] *= i;
        else
          months[j] /= i;
      cnt++;
    }
  }
  for (int i = A; i < A + N; ++i) sum += months[i];
  cout << sum << endl;
  return 0;
}
