Find the smallest positive integer xxx such that φ(x)=n\varphi(x)=nφ(x)=n.
Input a positive integer nnn (n<231n<2^{31}n<231).
Output xxx. If x>231x>2^{31}x>231 or it does not exist, output −1-1−1.
4
5
Translated by ChatGPT 5
使用您的 清北信奥登峰计划 通用账户