标签:std font c++ bsp style count 0基础 哥德巴赫猜想 nbsp
#include <stdio.h>
int main (){
int a,b,c,k,count1,count2;
for(a=4;a<=1200;a=a+2){
for(b=2;b<=a/2;b++){
count1=0;
for(c=2;c<=b-1;c++){
if(b%c==0)
count1++;}
if(count1==0){
k=a-b;
count2=0;
for(c=2;c<=k-1;c++){
if(k%c==0)
count2++;
}
if(count2==0){
printf("%d=%d+%d\n",a,b,k);
break;
}
}
}
}
}
标签:std font c++ bsp style count 0基础 哥德巴赫猜想 nbsp
原文地址:https://www.cnblogs.com/Codenewbie1/p/11665121.html