my code
why is this code failing???please help
Deepak and primes
if j is less than i, then i have a while loop at line 52 which runs
so whilej%i!=0 j++ so when it finally becomes i or a multiple of i, it breaks out of the loop which is what i want…
@sdevwrat when (j==i and j%i==0) you will go to second while loop but it would be wrong,you have to update siegesieve[j-a] when j is strictly greater than i otherwise it will give you wrong answer.