#include <bits/stdc++.h>
using namespace std;
int x[30000001];
int main() {
  int n, a;
  cin >> a >> n;
  long long sum = 0, limit = n + a + 1;
  memset((x), 0, sizeof(x));
  for (long long i = 1; i * i < limit; i++)
    for (long long j = i * i; j < limit; j += i * i) x[j] = i * i;
  for (int i = a, j = 0; i < a + n; i++, j++) sum += (a + j) / x[i];
  cout << sum << endl;
  return 0;
}
