哈希二分思想
#include<stdio.h>
int prime(int x){
for(int i=2;i<x/2;i++){
if(x%i==0)return 0;
}
return 1;
}
int main(){
int n;
while(~scanf("%d",&n)){
int love1 = n/2,love2= n/2;
while(1){
if(prime(love1)&&prime(love2)){
printf("%d %d\n",love1,love2);
break;
}
else {
love1--;
love2++;
}
}
}
}