#include<stdio.h>
int main()
{
	int i = 0;
	int j = 1;
	int flag = 0;
	for(;i<=100;i++)
	{
		flag = 0;
		for(j=2;j*j<i;j++)
		{
			if(i%j == 0)
			{
				flag = 1;
				break;
			}
		}
		if(flag == 0)
			printf("%d ",i);
	}
	return 0;
}