#P1592. 互质
互质
Description
Given two positive integers and , find the -th positive integer that is coprime to .
Input Format
A single line containing two positive integers and .
Output Format
A single positive integer, which is the -th positive integer that is coprime to .
10 5
11
Hint
Constraints
For all testdata, it is guaranteed that , .
Translated by ChatGPT 5
京公网安备 11011102002149号