My code is not working for the Prime Sieve

hi @hiteshmehra809_c9f950ced91b5a1b updated https://ide.codingblocks.com/s/666787

Still the code is not working properly for many inputs. Eg. for n=1 no output by the code and for n=15
it is also printing 15 which is not prime.

hi @hiteshmehra809_c9f950ced91b5a1b upadted https://ide.codingblocks.com/s/666787

thank you I got it !

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.