#include<stdio.h>
int P[10010]= {2},pN=1,curN=3;
int main() {
int M,N;
scanf("%d %d",&M,&N);
while(pN<=N) {
bool f = true;
for(int i=0; i<pN && i*i < curN; ++i)
if(curN%P[i]==0) {
f = false;
break;
}
if(f) P[pN++]=curN;
curN+=2;
}
int count =0;
for(int i=M-1; i<N; ++i) {
count++;
printf("%d%s",P[i],(count%10 && i<N-1)?" ":"\n");
}
return 0;
}