Facebook
From Mehmet Alperen Tekin, 1 Month ago, written in C#.
Embed
Download Paste or View Raw
Hits: 167
  1. namespace Asal
  2. {
  3.     class Program
  4.     {
  5.         static void Main(string[] args)
  6.         {
  7.             bool control = false;
  8.             for(int i = 500; i <= 600; i++)
  9.             {
  10.                 for(int j = 2; j < i; j++)
  11.                 {
  12.                      if ((i % j == 0)) { c break; }
  13.                 }
  14.                
  15.                 if (!control) Console.WriteLine(i + " ");
  16.                  c
  17.             }
  18.             Console.ReadKey();
  19.         }
  20.     }
  21. }