Why code is not working
Hi Yuvraj u have to use segmented sieve for large prime numbers… refer to my code https://ide.codingblocks.com/s/589160
Can you make changes in my code as it would be easier to understand .
Hi can u explain ur code using comments… otherwise i am unable to understand what exactly u have done…
I have done exactly as the code described in the video. the video is Large Prime Array. so you may see that.
okay… let me see…
okay so 2 mistakes were there…
firstly here b[no] == 1 should come and u had written b[no] = 1, so one = was missing
secondly
to make code optimized u have to write j += i in this for loop and not j++
hope it clears all ur doubts…
Hi Yuvraj… is ur doubt cleared now???