where is the error
Output is not showing
this is because you have not called the prime_sieve()
and hence this condition if(p[i]==1){
will not true and print nothing
https://ide.codingblocks.com/s/367586 desired output is not coming i.e not printing the prime numbers