编辑代码

#include <stdio.h>
int isShushu(int x) {
    for(int i = 2; x >= i; i++){
        if(x % i == 0 && i == x){
            printf("1");
            return 1;
        }else if(x % i == 0 && i < x){
            printf("0");
            return 0;
        }
    }
}

int main () { 
    int s = 0;
	scanf("%d",&s);
    isShushu(s);
	return 0;
}