Find the smallest positive integer whose least prime factor is , or state that the result is greater than .
Input Specification
The first and only line of input contains space separated integers and . will always be prime.
Output Specification
Output a single line with the expected result, or zero if the result exceeds .
Scoring
In test cases worth of total points, the expected result will either be less than , or will exceed .
In test cases worth additional of total points, will be greater than .
Sample Input 1
1 2
Sample Output 1
2
Sample Input 2
2 3
Sample Output 2
9
Sample Input 3
1000 1000003
Sample Output 3
0
Comments