Wrong answer in 2 test cases

I’m not able to understand which cases are failing. Please help

Can you tell me which test case numbers are not passed in your code?

Test case 1,2 are failing. Test case 1,2,3,4,5,6,7 are passing

Try for these test cases:
5
5
4
5
4
3
Ans should be : false

5
1
2
3
2
1
Ans should be : false

Yes, answer to both of these are fasle.

If your code is outputting false in both the cases, then the portal should accept the solution

It’s not accepting the solution. My score is 77.78

Paste your code here : cb.lk/ide and send the link generated
I would like to see the code

https://ide.codingblocks.com/s/151871 here’s the code

Your logic is correct.
I will discuss with the team why 2 test cases are causing trouble… till then, you can move forward in the course…

okay, please ask about sieve also… not able to submit in python

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.