#include <iostream> #include <cmath> using namespace std; const int n = 10000; int isPrime(int n); int main() { for(int i = 2; i < n;++ i) {//产生10000个数队列 if(isPrime(i)) { //判断变换前的数是否为素数 int count = 1; int sum = 0; for(int j = i;j > 1;) {…
find the longest of the shortest Time Limit: 1000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2524 Accepted Submission(s): 888 Problem Description Marica is very angry with Mirko because he found a new gi…