In Problem E I got a wrong answer on this test:
Input
1
2
2137 333979
Output
2137
My answer is -1,and I couldn't understand why 2137 is a valid solution knowing that 2137 is prime and 331 * 1009 = 333979.
Can anyone Tell me how is this output a valid solution for this Input ?
In Problem E I got a wrong answer on this test:
Input
1
2
2137 333979
Output
2137
My answer is -1,and I couldn't understand why 2137 is a valid solution knowing that 2137 is prime and 331 * 1009 = 333979.