I am not able to understand what mistake i did i have checked the code multiple times.
The link of the code–
The link of the problem–
I am not able to understand what mistake i did i have checked the code multiple times.
The link of the code–
The link of the problem–
Hi @mikki18,
here is d updated code.
I hv updated the prime sieve function in this and declared cumsum vector instead of array.
i have also added a condition while printing if a==0.
Hope dis will help.
if u still feel like something is unclear, feel free to post it here.
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.