一个偶数=2个素数的和,打印出来.
#include<stdio.h>
#include<math.h>
int shu(int data);
main()
{
int i,j,n,j1,i1;
printf("input the n=");
scanf("%d",&n);
if(n%2==1)
printf("the number is wrong\n");
for(i=1;i<=(n+1)/2;i++)
{
j=n-i;
if(shu(i) && shu(j))
printf("%d,%d",i,j);
}
}
int shu(int data)
{
for(i1=2;i1<=date;i1++)
if(date%i1==0)
return shu;
}