Code:
#include <stdio.h>
#include <stdlib.h>


//#include "prime.h"


int IsPrime(int a){
 int b=2, c=0;
 
 for (b=2; b<a; b++){
  if (a%b==0){
   c++;
   break;
  }
 }
 //return (c);
}


int main(int argc, char *argv[]) 
{
 int main(int argc, char *argv[]) {
    int n;
    scanf("%d",&n);
    if(IsPrime(n) == 0)
        printf("%d is prime\n", n);
    else
        printf("%d is not prime\n", n);


 system("pause"); 
 return 0;
}

I don't know what the problem is, first the problem was the #include prim.h, but I got rid of it so that was solved. Then I got this message:
"expected declration at end of input"