Spoj problem Prime1(segmented sieve)

Revision en2, by n8118, 2015-06-09 23:01:01

I have been trying to solve a problem on segmented sieve i.e prime1(http://www.spoj.com/problems/PRIME1/) in spoj but i am getting wrong answer and unable to find the bug in the code. So please help me..

http://ideone.com/JiSxel

Tags spoj, primes, sieve of eratosthenes

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English n8118 2015-06-09 23:01:01 970
en1 English n8118 2015-06-09 22:57:59 1221 Initial revision (published)