https://ide.codingblocks.com/s/429886,
i’d done this much of question, what is problem in this much of question?
please tell me
https://ide.codingblocks.com/s/429886,
i’d done this much of question, what is problem in this much of question?
please tell me
there were few mistakes in ur code , i have corrected them .
and is there any other approach for solving this question without prime number sieve
its correct,
it is best approach . to find prime u can use brute force but then its time complexity will be high
okay bhaiya , thank you!!
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.