| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12275 | 陈颖钧 | 挛生素数 | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 305 | 2025-07-09 16:37:59 |
#include<bits/stdc++.h> using namespace std; int n,m,i; int su(int i){ int a=2; 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&&i+2<=m){ cout<<i<<' '<<i+2 <<endl; } } }