#include <stdio.h>
void isprime(int num)
{
int mod = 2;
for(mod = 2; mod < num ; mod++)
{
printf("mod:%d\n",mod);
printf("num:mod:%d\n",num%mod);
if((num%mod) == 0)
{
printf("This is not a prime numble!\n");
return;
}
}
printf("This is a prime numble!\n");
return;
}
int main()
{
int num = 0;
printf("Enter test number:");
scanf("%d" , &num);
isprime(num);
return 0;
}