Deepak and primes

i dont know why am i getting a segementation fault in my code . please clear my doubt

hello @SARTHAK
please save ur code here->https://ide.codingblocks.com/
and share the link with me.