public class function2 { //记得修改文件名或类名public static void main(String[] args) {// TODO Auto-generated method stubint i=4,j=2;for(i=4;i<=100;i=i+2){for(j=2;j<=i/2;j++){if(prime(j)&&prime(i-j)){System.out.println(i+"="+j+"+"+(i-j));break;}}}}public static boolean prime(int x) {int i=2;for(i=2;i<=x-1;i++){if(x%i==0){break;}}if(x==i){return true; }else{return false; }}
}
//哥德巴赫猜想(Goldbach)