| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84058 | 尚雨钒 | 素数对 | C++ | Wrong Answer | 1 MS | 268 KB | 394 | 2024-07-15 11:21:03 |
#include <iostream> using namespace std; bool iss(int a,int b) { if(b-1==2) { for(int j=2; j<a; j++) { if(a%j==0) { return false; } } for(int k=2; k<b; k++) { if(b%k==0) { return false; } } return true; } else { return false; } } int main() { int n; cin>>n; for(int i=3; i<=n; i=i+2) { cout<<i<<' '<<i+2<<endl; } return 0; }
------Input------
17
------Answer-----
3 5 5 7 11 13
------Your output-----
3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19