prime number program in c# using while loop