#include <stdio.h>#include <stdbool.h>bool isPrime(int num) { if (num <= 1) { return false; } for (int i = 2; i <= num / 2; i++) { if (num % i == 0) { return false; } } return true;}int main() { int evenNum; printf("请输入一个偶数: "); scanf("%d", &evenNum); for (int i = 2; i <= evenNum / 2; i++) { if (isPrime(i) && isPrime(evenNum - i)) { printf("%d + %d = %d\n", i, evenNum - i, evenNum); break; } } return 0;}