| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12270 | 陈颖钧 | 挛生素数 | C++ | Wrong Answer | 0 | 1 MS | 260 KB | 332 | 2025-07-09 16:35:04 |
#include<bits/stdc++.h> using namespace std; int n,m,i; int su(int i){ int a=3; if(i==1||i==0){ return 0; } while(a<i){ if(i%a==0){ return 0; } a++; } return 1; } int main(){ cin>>n; for(i=2;i<=n;i++){ if(su(i)==1&&su(i+2)==1){ cout<<i<<' '<<i+2 <<endl; } } }