i have written the doubt in the comments
Prime Visits Doubt
@anasmir24 your both presum function are working fine with me. could you give me cases where you think they aren’t working.
2 test cases are not passing for the uncommented function
@anasmir24 your functions are correct you are getting run error in the case when a=0, cause then you are accessing a[-1].
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.