不记得素数的理解了,素数部分有问题,把你的copy到set就ok了 include <stdio.h> int set(int num);int main(void){ int i;int j = 0;int num = 0;for(num = 6; num <= 100; num+=2){ for(i = 2; i <= 100; i++){ if((set(num - i)) && (set(i)) && (num - ...
include <stdio.h> bool IsPrimeNum(int n) { if(n < 2) return false;for(int i = 2;i*i <= n;i++)if(n%i == 0) return false;return true;} int main() { int counter;for(int i = 100;i < 103;i += 2) { printf("%d",i);counter = 0;for(int j = 2;j <=...