here is the code https://ide.codingblocks.com/s/215006
I am getting error pls help
Hello @pyash,
As the constraint given in the question is:
1<=n<=5000000
Due you think 5000000th prime number will come within 5000000?
Solution:
Iterate the sieves logic till 100000007.
Hope, this would help.
Give a like if you are satisfied.
error is coming still
it is not giving output
Hello @S18ML0016,
After analyzing your code again, I found that their are more mistakes in your code.
I have corrected them all:
Refer to comments for better understanding.
Hope, this would help.
Give a like if you are satisfied.
/bin/run.sh: line 4: 17 Segmentation fault (core dumped) ./exe This error is coming after compilling compilation error
Hello @pyash,
Try to submit it again.
It is giving all correct answers to me:
Try to submit multiple time.
There might be some issue with the Compiler.
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.
