Https://ide.codingblocks.com/s/279888

why my ans is giving tle errror will u comment it out on code

hello @Aditya-Kushwaha-914550392281281
check ur updated code.

increased array a size by 1.

and calling prime from out of the while loop.

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.