int Primer(int num)//返回值为0不是素数,返回值为1是素数{int i;if(num <= 1){return 0;}for(i = 2; i < num; ++i){if(num % i == 0){return 0;}}return 1;}