what is wrong in this code it is not even running on my laptop tell me the solution
You have taken prime array p of size 10^5 but in sieve function you are running loops till 10^6.
And at line 11 of your code update p[ j ] not p[ i ].
after correcting my code it running on cb ide but when i compile this program my laptop antivirus blocked the program from execution it data protector blocked the program file name tell me the solution of this problem.
This sounds like your laptops technical problem i don’t know what can be done.if you any problem related to code let me know.
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
thanks for the awesome information.