#P8316. [CQOI2016] 伪光滑数 加强版
[CQOI2016] 伪光滑数 加强版
Background
Original problem link: P4359 [CQOI2016] Pseudo-Smooth Numbers.
Problem Description
For an integer , suppose its prime factorization with multiplicity has factors, and its largest prime factor is . If it satisfies and , then we call an -pseudo-smooth number.
Given an integer , find the -th largest -pseudo-smooth number.
Input Format
One line with two integers .
Output Format
One line with one integer, representing the required value.
12345 20
9167
Hint
For of the testdata, , , and it is guaranteed that there are at least numbers that satisfy the conditions.
Translated by ChatGPT 5