I am trying to write a prime number function in C# and I am wondering if the follow code will work. It \"appears\" to work with the first 50 numbers or so. I just want to ma
this is a simple one
only odd numbers are prime....so
static bool IsPrime(int number) { int i; if(number==2) return true; //if number is 2 then it will return prime for(i=3,i