public class project03 {
public static void main(String[] args){
int i,j;
int sum=0;
for(i=1;i<=1000;i++) {
for(j=1;j<i;j++) {
if(i%j==0)
sum=sum+j;
}
if(sum==i)
System.out.println(i);
sum=0;
}
}
}
12-06
544
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-21