【基础试题】验证哥德巴赫猜想 Time Limit:1000MS Memory Limit:65536K Total Submit:566 Accepted:267 Description

#include 
#include 
using namespace std;

bool prime(long x);

int main()
{
long i,d,j,k;
bool bk,bj;
cin>>d;
i = d / 2;
for ( j = 3; j <= i; j++)
{
k = d - j;
bk = prime(k);
bj = prime(j);
if (bk && bj)
{
cout<

你可能感兴趣的:(c++)