#include <bits/stdc++.h>
using namespace std;
const int SIZE = 10000000;
int a, n, c[SIZE + 1];
int main() {
  long long ans = 0;
  scanf("%d%d", &a, &n);
  for (int i = 1; i <= SIZE; i++) c[i] = 1;
  for (int i = 2; i * i <= SIZE; i++)
    for (int j = i * i; j <= SIZE; j += i * i) c[j] = max(c[j], i * i);
  for (int i = 0; i < n; i++) ans += (a + i) / c[a + i];
  printf("%I64d\n", ans);
}
