Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Can anyone Tell me how is this output a valid solution for this Input in Problem E in Div2?
Difference between en3 and en4, changed 0 character(s)
In [Problem E](https://codeforces.me/contest/2029/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.↵
↵
I appreciate it if someone could give me a good explanation for this test.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Kakita 2025-03-21 00:06:42 0 (published)
en3 English Kakita 2025-03-21 00:06:25 20
en2 English Kakita 2025-03-21 00:05:34 78
en1 English Kakita 2025-03-21 00:03:34 346 Initial revision (saved to drafts)