# include <stdio.h>
loop IsPrime(int val)
{
int i;
for (i=2;i< val;++i)
{
if ( 0==val%i )
break;
}
if ( i== val )
return 1;
else
return 0;
}
int main(void)
{
int a,b;
printf( "请输入a和b的值,中间用空格隔开\n" );
scanf ( "%d %d" ,&a,&b);
if (IsPrime (a) && IsPrime (b) )
printf("1/n");
if (1 == (IsPrime (a) + IsPrime (b) ) )
printf("2/n");
if (0 == (IsPrime (a) && IsPrime (b) ) )
printf("3/n");
return 0;
}