#include <bits/stdc++.h>
using namespace std;
int num[10000011];
int main() {
  int i, j, k, l, a, n;
  for (i = 0; i < 10000001; i++) {
    num[i] = i;
  }
  for (i = 4, j = 2; i < 10000001; i += (j << 1) + 1, j++) {
    for (k = 1, l = i; l < 10000001; l += i, k++) {
      num[l] = k;
    }
  }
  while (~scanf("%d%d", &a, &n)) {
    n += a;
    long long ans(0);
    for (i = a; i < n; ++i) {
      ans += num[i];
    }
    cout << ans << endl;
  }
}
