I would like to print out the Palindromic primes of 5 digit numbers and then get a check sum of the also. Here is my code for printing the primes, but how do I check to see if they are panlindromic??
Code:
#include <stdio.h>
int main(void)
{
int num=100000;
int i;
for(i=2; i<num; i++)
if(num%2 != 0)
if(num%3 != 0)
if(num%4 != 0)
if(num%5 != 0)
if(num%6 != 0)
if(num%7 != 0)
if(num%8 != 0)
if(num%9 != 0)
printf("%d\n", num)
}