Please help! I'm trying to write a function that determines if a number is prime to use this function to determine and prints all prime numbers between 1 and 100. This is what I have so far:

#include <stdio.h>

int prime(int num)

{

int sw = 1;

int count:

}

for( count = num-1; count >=2; count--);

scanf("%d", &prime);

printf("%d\n", count, sw=1);

return 0;

}