| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83996 | 游四鑫 | 素数对 | C++ | Wrong Answer | 29 MS | 268 KB | 289 | 2024-07-15 10:53:49 |
# include<iostream> using namespace std; int s (int w){ for(int i=2;i<w;i++){ if(w%i==0)return 0; } return 1; } int main(){ int v=0; int w; cin>>w; for(int i=2;i<w;i++){ if(s(i)&&s(i+2)){ cout<<i<<' '<<i+2<<endl; } } return 0; }
------Input------
1
------Answer-----
No
------Your output-----