为什么这个程序输入一个数,回车后,只返回一条语句
//判断一个数是否为素数#include<stdio.h>
#include<math.h>
int main()
{
int a,i;
printf("Please input a figure:");
scanf("%d", &a);
for (i = a - 1; i > sqrt(a); i--);
{
if (a % i == 0)
printf("The figure isn't a prime number.\n");
else
printf("The figure is a prime number.\n");
}
return 0;
}