#include <bits/stdc++.h>
using namespace std;
int Sieve[12345678];
int main() {
  long long A, N, R = 0;
  cin >> A >> N;
  for (long long i = 1; i < A + N; i++)
    for (long long j = 1; j * i * i < A + N; j++) Sieve[j * i * i] = j;
  for (int i = 0; i < (N); i++) R += Sieve[A + i];
  cout << R << endl;
  return 0;
}
