这么眼熟呢?
#include
#include
int main()
{
int a,b,c,d;
scanf("%d",&a);
for(b=3;b{
for(c=2;c
if(c>sqrt(b))
{
d=a-b;
for(c=2;c<=sqrt(d)+1;c++)
if(d%c==0)
break;
if(c>sqrt(d))
printf("%d=%d+%d\n",a,b,d);
}
else
continue;
}
system("pause ");
return 0;
}
改好了的