#include <bits/stdc++.h>
using namespace std;
const int maxn = 10000010;
int p[maxn];
int main() {
  int i, j, st, a, n, maxi;
  long long ans = 0;
  scanf("%d%d", &a, &n);
  maxi = (int)(sqrt(a + n - 1) + 1e-7);
  for (i = 1; i <= maxi; i++) {
    st = (int)(a / (i * i) + 1e-7) * i * i;
    for (j = st; j <= a + n - 1; j += i * i) p[j] = i * i;
  }
  for (i = a; i <= a + n - 1; i++) ans += i / p[i];
  printf("%I64d\n", ans);
  return 0;
}
