Prateek loves candy


i am getting error

@yyashu123 inside your prime function run your for loop at line 12 upto 10^6 not upto n since n in not declared for that function,
and for loop at line 23 you have written wrong terminating condition you have used i instead of j

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.