P822 Conway’s Conjecture

Conway’s Conjecture

题目描述

John Horton Conway, a British mathematician active in recreational mathematics, proposed a conjecture in 2014: arrange the factors of any given number in ascending order, and pull the exponents down, we can get another number. Keep doing so we must end up at a prime number. For example: 18=2×3^2 ​​232=2^3​×29 2329=17×137 17137 is a prime. Now you are supposed to write a program to make one step verification of this conjecture. That is, for any given positive integer N, you must factorize it, and then test if the number obtained from its factors is a prime.

🔒
登录后查看完整题面
登录后查看题目

统计