Home >
Back-end > For 100 to 999 super reverse primes, answer to 39, 57, I calculate really don't know where is w
For 100 to 999 super reverse primes, answer to 39, 57, I calculate really don't know where is w
#include
#include
#include
Int sushu (int);
Int main ()
{
int i=0;
Int nCount=0;
Int ni=0;
For (I=100; i <=999; I + +)
{
If (sushu (I))
{
Int a=I/10% 10;
Int b=I % 10;
Ni=a * 10 + b;
If (sushu (ni) & amp; & a !=0 & amp; & B!=0)
{
Int c=I % 10;
If (sushu (c))
{
NCount + +;
}
}
}
}
Printf (" % d ", nCount);
System (" pause ");
return 0;
}
Int sushu (int I)
{
int n=0;
For (n=2; N & lt;=SQRT (I); N + +)
{
If (I % n==0)
return 0;
}
return 1;
} CodePudding user response:
Hexadecimal 39 is equal to a decimal 57 CodePudding user response: