#include
int main()
{
int m, n, i, leap, j;
leap = 1;
scanf("%d%d", &m, &n);
for (j = m; j <= n; j++)
{
for (i = 2, leap = 1; i <= j - 1; i++)
{
if (j % i == 0)
{
leap = 0;
break;
}
}
if (leap == 1)
printf("%d ", j);
}
return 0;
}
#include
int main()
{
int m, n, i, leap, j;
leap = 1;
scanf("%d%d", &m, &n);
for (j = m; j <= n; j++)
{
for (i = 2, leap = 1; i <= j - 1; i++)
{
if (j % i == 0)
{
leap = 0;
break;
}
}
if (leap == 1)
printf("%d ", j);
}
return 0;
}