perfect number program in c#