using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication43
{
    class Program
    {
        public static void Main()
        {
            int i;
            bool x=true;
            for (i = 100; i <= 200; i++)
            {
                for (int j = 2; j <=Convert.ToInt32( Math.Sqrt(i)); j++)
                {
                    if (i % j == 0)
                    {
                        x = false;
                        break;
                       
                    }
                    if (x = true)
                    Console.WriteLine(i);
               
                }
                     Console.ReadLine();
            }
        }
    }
}
你们看看  比如显示101   101 就出现六次   每个素数都是显示6次 而且必须按enter才显示下一个素数 无限郁闷中
  

											
	    
