Advertisement
Guest User

C# Prime

a guest
Nov 27th, 2014
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.45 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4.  
  5. class Program
  6. {
  7.     static void Main()
  8.     {
  9.         Console.Write("2--3--5--7--11--13--17--19--23--29-");
  10.         for (int i = 2; i < 10000; i++)
  11.         {
  12.             double a = 1;
  13.             double num = i;
  14.             if (num / num == a)
  15.             {
  16.                 if (num / 1 == num)
  17.                 {
  18.                     if(num % 2 == 0)
  19.                     {
  20.  
  21.                     }
  22.                     else
  23.                     {
  24.                         if (num % 3 == 0)
  25.                         {
  26.  
  27.                         }
  28.                         else
  29.                         {
  30.                             if (num % 5 == 0)
  31.                             {
  32.                                
  33.                             }
  34.                             else
  35.                             {
  36.                                 if (num % 7 == 0)
  37.                                 {
  38.                                    
  39.                                 }
  40.                                 else
  41.                                 {
  42.                                     if (num % 11 == 0)
  43.                                     {
  44.                                        
  45.                                     }
  46.                                     else
  47.                                     {
  48.                                         if (num % 13 == 0)
  49.                                         {
  50.                                            
  51.                                         }
  52.                                         else
  53.                                         {
  54.                                             if (num % 17 == 0)
  55.                                             {
  56.                                                
  57.                                             }
  58.                                             else
  59.                                             {
  60.                                                 if (num % 19 == 0)
  61.                                                 {
  62.                                                    
  63.                                                 }
  64.                                                 else
  65.                                                 {
  66.                                                     if (num % 23 == 0)
  67.                                                     {
  68.                                                        
  69.                                                     }
  70.                                                     else
  71.                                                     {
  72.                                                         if (num % 29 == 0)
  73.                                                         {
  74.                                                            
  75.                                                         }
  76.                                                         else
  77.                                                         {
  78.                                                             Console.Write("-" + num + "-");
  79.                                                         }
  80.                                                     }
  81.                                                 }
  82.                                             }
  83.                                         }
  84.                                     }
  85.                                 }
  86.                             }
  87.                         }
  88.                     }
  89.                 }
  90.             }
  91.         }
  92.     }
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement