Can you mark the mistake in my code?

Hello @akash_281 i have made all the necessary change in your code. you have to first generate the sieve array then store the prime elments in the new array at the location starting from 1 upto the constraint .


i hope i’ve cleared your doubt .
Happy Learning !!

1 Like