Beginner help

Oct 6 2014 12:05 PM
I am trying to make a program that can find all the wilson primes(i know it will be useless and wont get further than the first 3 known)
but it is still bugging be that the code returns nothing 
 
 
using System;


namespace Wilson_Primes
{
class MainClass
{
public static void Main (string[] args)
{
int count = 1;
int basenumber = 0;
int final, i;
while (count > 0){
int prime = basenumber - 1;
for (i = prime - 1; i >= 1; i--)
{
final = prime * i;
Console.WriteLine (final);
}
count = count + 1;


}
}
}
}
 

Answers (1)