#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int i,j,ws;
for(i=3;i<=10000;i++){
ws = 1; //问题1:忘记了每次计算都要把起始值归1
for(j=2;j<sqrt(i);j++){ws = 1
if(i%j==0){
if(j==i/j){
ws += j;
}
ws += j + i/j;
}
}
if(i==ws){
printf("%d ",ws);
}
}
return 0;
}