#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
const long long LINF = 4000000000000000000LL;
const double eps = 1e-9;
void prepare() {}
int a, n;
int day[10000008];
void read() { scanf("%d%d", &a, &n); }
void solve() {
  read();
  for (int i = 1; i * i < a + n; i++) {
    int ii = i * i;
    for (int j = ii; j < a + n; j += ii) day[j] = i * i;
  }
  long long res = 0;
  for (int i = a; i < a + n; i++) res += i / day[i];
  cout << res << endl;
}
int main() {
  prepare();
  solve();
  return 0;
}
