迴文素數判斷

//迴文素數 //1.素數,2.迴文 //遍歷+條件 #include<stdio.h> #include<math.h> long re(long n)//倒置 { int t=0; while(n>0) { t=t*10+n%10; n=n/10; } return t; } int pri(long m)//素數判斷 { long n=sqrt(m),i; for(i=
相關文章
相關標籤/搜索