using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication99
{
    class Program
    {
        static void Main(string[] args)
        {
            List<int> pr = new List<int>();

            for (int i = 2; i < 100; i++)
            {
                for (int j = i * 2; j < 100; j = j + i)
                {
                    if (!pr.Contains(j))
                    {
                        pr.Add(j);
                    }
                }
            }
            for (int a = 2; a < 100; a++)
            {
                if (!pr.Contains(a))
                {
                    Console.WriteLine(a);
                }
            }
            Console.ReadKey();
        }
    }
}