#include<iostream.h>
#include<conio.h>
#include<math.h>
int prime(int);
void main()
{
int i,j,c1,c2,num,f1,f2;
clrscr();
cout<<"Enter the number-";
cin>>num;
for(i=2,j=num-2;i<=num/2;i++,j--)
{
f1=prime(i);
if(f1)
{
f2=prime(j);
if(f2)
cout<<"Pair:"<<i<<" + "<<j<<endl;
}
}
getch();
}
int prime(int a)
{
int i;
for(i=2;i<=sqrt(a);i++)
if(a%i==0)
return 0;
else
continue;
return 1;
}
Plz verify it. Any suggestions,comments or recommendations are welcomed.