#include<stdio.h>intmain(){int n, a, b, k, c, q, w;scanf("%d",&n);int i =2, j = n -2;while(i <= j){if(i ==2&& j ==2){
a =1;
b =1;}elseif(i ==2&& j !=2){
a =1;for(q =2, w =1; q < j && w ==1; q++){if(j % q !=0){
b =1;}else{
b =0;
w =0;}}}elseif(i !=2&& j ==2){
b =1;for(k =2, c =1; k < i && c ==1; k++){if(i % k !=0){
a =1;}else{
a =0;
c =0;}}}else{for(k =2, c =1; k < i && c ==1; k++){if(i % k !=0){
a =1;}else{
a =0;
c =0;}}for(q =2, w =1; q < j && w ==1; q++){if(j % q !=0){
b =1;}else{
b =0;
w =0;}}}if(a ==1&& b ==1){printf("%d and %d\n", i, j);}else{}
i++;
j--;}return0;}
B.实验4_2_哥德巴赫猜想#include<stdio.h>int main() { int n, a, b, k, c, q, w; scanf("%d", &n); int i = 2, j = n - 2; while (i <= j) { if (i == 2 && j == 2) { a = 1; b = 1; } else if (i