l,n=map(int,input().split())
for i in range (l+1,n):
if m>1:
for i in range(2,m):
if(m%i)==0:
break
else:
print(m,end=' ')

f8a75e91c77a6ab09a5b5ef3d79f2e4ff875b489
l,n=map(int,input().split())
for i in range (l+1,n):
if m>1:
for i in range(2,m):
if(m%i)==0:
break
else:
print(m,end=' ')
