摘要: 原题链接: 一开始的思路:把数字转换成字符串类型并将字符串反转,若反转后的字符串和原来的字符串一致且该数是质数,则是回文质数。 #include <bits/stdc++.h> using namespace std; bool isPrime(int x) { if (x < 2) return 阅读全文
posted @ 2023-12-13 13:42 胖柚の工作室 阅读(44) 评论(0) 推荐(0)