Sort 11 Discussions, By:
Please Login in order to post a comment
Are we supposed to apply some method like quadratic sieve in factoring N?
i am getting a Terminated due to timeout for testcases#7to#11 plzzz someone can clarify with the problem !!!
I got the logic but there is a timeout after 6th test case. Not able to shorten the code anymore .
I got the logic and code is working fine except that from testCase 7 onwards i am getting TimeOut.
Can someone please guide me how to optimise my code?
Getting WA at test case 8,9,11. I use formula (divisors of (N^2)+1)/2. is it wrong? Any suggestion please...