#include <iostream>
#include <cmath>
using namespace std;
int main()
{
for( int i = 2 ; i <= 100 ; i ++ )
{
bool p = 1;
for( int j = 2 ; j <= sqrt( i ) ; j ++ )
if( i % j == 0 ) { p = 0 ; break ; }
if( p ) printf( "%d\n" , i );
}
system ( "pause" );
return 0;
}