| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12278 | 罗炜翰 | 挛生素数 | C++ | Wrong Answer | 50 | 1 MS | 256 KB | 323 | 2025-07-09 16:40:31 |
#include<bits/stdc++.h> using namespace std; int z(int x) { for(int i = 2;i<x;i++) { if(x%i==0) { return 0; } } return 1; } void fun(int n){ for(int i=2;i<=n;i++){ if(z(i+2)&&z(i)){ cout<<i<<' '<<i+2<<endl; } } } int main() { int n; cin>>n; fun(n); return 0; }