include<stdio.h> int isz(int n){ int i;if(n<2)return 0;for(i=2;i*i<=n;i++)if(n%i==0)return 0;return 1;} main(){ int n;scanf("%d",&n);printf(isz(n)?"shi":"bushi");return 0;} /*BY TXJ*/
include <stdio.h>#include <conio.h>#include <math.h>/*判断质数 1:是;0:否*//*对于某数num,若其不能被2~num^1/2(num的平方根)之间所有整数整除,则其为质数*/int isPrime (int num) {int i,squareRoot;squareRoot = (int) sqrt (num);for (i=2; i<=squareRoot; i++)if...