#include <bits/stdc++.h>
using namespace std;
const int N = 10000000;
int a[N + 5];
int main() {
  int i, j, k, x, n, m;
  cin >> x >> n;
  m = x + n - 1;
  for (i = 0; i < N + 5; a[i++] = 1)
    ;
  for (i = 2; i * i <= m; i++) {
    int k = i * i;
    for (j = k; j <= m; j += k) a[j] = i;
  }
  long long ans = 0;
  for (i = x; i <= m; i++) ans += i / (a[i] * a[i]) * 1ll;
  cout << ans;
  return 0;
}
