100等于两个的和的素数是多少

来源:百度知道 编辑:UC知道 时间:2024/07/04 15:52:30
快点啊 。。我急死了

53和47

The number: 3 , 97
The number: 11 , 89
The number: 17 , 83
The number: 29 , 71
The number: 41 , 59
The number: 47 , 53

#include <conio.h>
#include <stdio.h>
#include <math.h>

int prime(int m)
{int i;
if(m==1)
return 0;
for(i=2;i<=m/2;i++)
if(m%i==0) break;

if(i>m/2)
return 1;
return 0;

}

void main( )
{
int i,j,n;

for(i=1;i<=50;i++)
{
j=100-i;
if(prime(i)&&prime(j))
{
printf("The number: %d , %d\n",i,j);
}
}

getch();
}

懒死算了

100这么小,不会自己算?!

3+97
11+89
17+83
29+71
41+59
47+53

#include<iostream>
#include<math.h>
using namespace std;
bool IsPrimer(int n);
void main()
{
for(int i = 1; i <= 100/2; i++)
{