急!帮帮忙写个证明哥德巴赫猜想的程序
证明哥德巴赫猜想的C编程
#include <stdio.h>
int prime (int a);
int main ()
{
int a,b,c;
int judgment;
printf ("Please enter a large even number (>=4):");
while (scanf("%d",&a)==1)
{
if(a%2==0)
for (b=2;b<=a;b++)
{
judgment=sushu (b);
if (judgment==1)
{
c=a-b;
judgment=sushu (c);
if (judgment==1)
printf ("%d=%d+%d ",a,b,c);
}
else
break;
}
else
printf ("Error!");
}
return 0;
}
int prime (int n)
{
int i;
for (i=2;i*i<n;i++)
{
if (n%i==0)
return 0;
}
return 1;
}
到底哪里错了!帮忙改下!!谢谢