Prateek loves candy. time limit exceed


i am not getting how to further optimise it

Plz use prime seive optimisation as given in online video lectures.

i did. started j from i*i. as given in this course
are there any other lectures to be watched?

No just watch that lecture only, it needs to be implemented

i implemented the same .please check my code andd let me know whats wrong

Plz send your edited code so that I could check it

Shreya, were you able to complete your question or facing any issues ?