Please read the new rule regarding the restriction on the use of AI tools. ×

help needed SPOJ VECTAR8(problem)

Revision en1, by akhil_agg7, 2020-05-02 00:31:50

this is a link to the question: https://www.spoj.com/problems/VECTAR8/

my code is working fine but when the input is 10^6 its giving wrong answer. I m not getting what i m missing due to which getting wrong answer.

my solution: https://www.spoj.com/submit/VECTAR8/id=25896426

please tell me where i am wrong.

Tags #eratosthenes_sieve, c++, #wronganswer

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English akhil_agg7 2020-05-02 00:31:50 352 Initial revision (published)