#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int prime[101];
	for(int i=0;i<101;i++)
		prime[i]=1;//As we dont know if a number is prime we assume that all numbers are prime and then we will mark all non primes
	prime[0]=0;
	prime[1]=0;
	//0 and 1 are not prime
	for(int i=2;i<11;i++)
		for(int j=2*i;j<101;j+=i)
			prime[j]=0;//Marking all multiples of i as not prime
	for(int i=2;i<101;i++)
		if(prime[i]==1)
			cout<<i<<endl;
	return 0;
}