#define _CRT_SECURE_NO_WARNINGS
//定义一个函数判断素数prime number
#include <stdio.h>
int prime_number(int y)
{
int i = 0;
for (i = 2; i < y; i++)
{
if (y % i == 0)
return 0;
}
return 1;
}
int main()
{
int x;
scanf_s("%d", &x);
if (1 == prime_number(x))
{
printf("%d is prime number", x);
}
else
printf("%d not is prime number", x);
return 0;
}