I took these notes in class, and mangled them somehow. For the life of me, I can't figure out where the error is. It's meant to find perfect numbers. A perfect number is a number that is the sum of its divisors (minus itself). Thanks for taking a look- I really appreciate it.
for(n=2;n<=10000;n++) //we're trying to see if n is perfect.
for(k=n/2;k<=n/2;k++) //if k<=n/2 and sum <=n
//also k should start at large end, not low.
cout << n << " is perfect!" << endl;