#include<iostream>
using namespace std;
#include<string>
int issu(int n) {
int count = 0;
if (n == 1) {
return 0;
}
else {
for (int i = 2; i <= n / 2; i++) {
if (n % 2 == 0) {
count++;
}
}
}
if (count == 0) {
return 1;
}
else {
return 0;
}
}
int main() {
int a, b;
cout<<"请从键盘中依次输入两个数分别赋值给a,b,要求第一个数小于第二个数:" << endl;
cin >> a >> b;
if (a >= b) {
cout << "您的输入不符合规范,请重新再来。"<<endl;
}
else {
for (int i = a; i <= b; i++) {
if (i % 2 == 0) {
for (int j = 2; j <= i - 2; j++) {
if (issu(j) && issu(i - j)) {
cout << "偶数:" << i ;
cout << " 两个素数分别是:" << j << " " << (i - j) << endl;
break;
}
}
}
}
}
}