Expected declaration specifier error in function

You defined is_Prime inside the body of main. This is not possible in C.

Or alternately, you are missing a closing curly brace at the end of main‘s body.

The other problem was already mentioned in shf301’s answer.

Leave a Comment