Unexpected runtime error on testcase [SOLVED].
Difference between en1 and en2, changed 105 character(s)
I've been trying to solve this problem — [problem:385C] , Bear and Prime Numbers. My solution gives a completely expected runtime error on Testcase#4. Can someone please explain to me as to why this is happening? ↵

My solution: http://codeforces.me/contest/385/submission/12629174↵

Any help would be greatly appreciated.↵

Thanks in advance.


EDIT: Solved. I had not taken into consideration that even l could be greater than 10000000.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ananth94 2015-08-21 17:19:52 105 Solved
en1 English ananth94 2015-08-21 17:15:58 390 Initial revision (published)