Introduction - If you have any usage issues, please Google them yourself
int a[100]={0}
int sum=0,k=0
for(int i=2 i<=10000 i++)
{
for(int l=0 l<100 l++)
a[l]=0
k=0
sum=0
for(int j=1 j<=i/2 j++)
{
if(!(i j))
a[k++]=j
}
for(int m=0 m<k m++)
{
sum+=a[m]
}
if(sum==i)
cout<<i<<endl
}