答案

zongyubo 2020-11-07 15:47:47 8

#include using namespace std; bool zyt(int x){ for(int i=2;i*i<=x;i++){ if(x%i==0){ return 0; } } return 1; } int main(){ int a; cin>>a; if(zyt(a)) cout<<"yes"; else cout<<"no"; return 0; }

{{ vote && vote.total.up }}

共 1 条回复

chen_zhe 沙雕

都 说 了 发 送 题 解 代 码 要 这 样 发:

```cpp
    代码;
```