#include "stdio.h"
int main (void)
{
int number;
printf("Enter a number within (10-100):\n");
scanf("%d", &number);
if (number%2==0||number%3==0||number%5==0||number%7==0)
{
printf("Not prime\n");
}
else
{
printf("Prime.\n");
}
return 0;
}
0 comments:
Post a Comment