Simple Loop Program

A very simple looping program for beginners as well as for QAs who are into script writing for Automation. I have created in dot net fiddle. Please find the link as well. This is a simple program which loops through from 1 to 100 and dispays out put as:

Processing 1 ...
1 is a prime Number
1 is an odd number

Processing 2 ...
2 is a prime Number
2 is an even number

Processing 3 ...
3 is a prime Number
3 is an odd number ...

And so on.

So the code goes as below:
  1. using System;  
  2.                       
  3. public class Program  
  4. {  
  5.     public static void Main()  
  6.     {  
  7.         for(int i=1;i<=100;i++){  
  8.           
  9.             Console.WriteLine("Processing {0} ...",i);  
  10.             //Check for Prime Number  
  11.             var primeCheckFlag = true;  
  12.             for(int primeCheker = 2; primeCheker<= i/2;++primeCheker){  
  13.                 if(i%primeCheker==0){  
  14.                     primeCheckFlag = false;  
  15.                     break;  
  16.                 }  
  17.             }  
  18.             if(primeCheckFlag==true){  
  19.                 Console.WriteLine("{0} is a prime Number", i);    
  20.             }  
  21.             else{  
  22.                 Console.WriteLine("{0} is not a prime Number", i);    
  23.             }  
  24.                 //Check for number has zeroes  
  25.             var zeroCheck = i/5;  
  26.             if(i%5 == 0 && zeroCheck % 2 ==0) {  
  27.              Console.WriteLine("{0} has zero in it", i);          
  28.             }  
  29.               
  30.             //Check for Even/Odd  
  31.             if(i % 2 == 0){  
  32.                 Console.WriteLine("{0} is an even number \n", i );                
  33.             }  
  34.             else{  
  35.                 Console.WriteLine("{0} is an odd number \n", i);  
  36.             }  
  37.               
  38.           
  39.         }  
  40.     }  
  41. }  
This was a question asked by a QAanalyst. This seems easy for developers but for begineers, it would be really handy. Hope you like it and learn atleast something.

Running Fiddle: https://dotnetfiddle.net/1o7riM