#P2291. [PA 2011] Prime prime power 质数的质数次方
[PA 2011] Prime prime power 质数的质数次方
Description
Given a number , find the -th smallest value of ( and are both prime numbers) such that its value is greater than .
Input Format
One line with two integers .
Output Format
Output one integer on a single line as the answer.
22 2
27
22 1
25
Hint
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号