#includeint main (){int grade,i,n;printf("请输入一个数:");scanf("%d" , &grade) ;if(grade == 2){printf(“是一个质数呀!\n”);return 0;}if(grade <2)return 44;for(i=2;in=grade % i;if(n==0 && nreturn 44;}}printf(“是一个质数呀!\n”);return 0;}如果运行有问题可评论咨询我