问题描述: 编程求出100到10000之间既是素数又是回文数的所有数~用c语言,急 在线等 1个回答 分类:综合 2014-11-23 问题解答: 我来补答 #include #include int p(int x) //x是素数返回1,否则返回0{ int i; for(i=2;i0) y=y/10,i++; //求x的位数 y=x; while (y) { a=y/pow(10,i-1); b=y%10; y=y-a*pow(10,i-1); y=y/10; if (a!=b) return 0; i=i-2; } return 1;} void main(){ int i; for(i=100;i 展开全文阅读