| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12863 | 罗炜翰 | 纯粹合数 | C++ | Wrong Answer | 0 | 6 MS | 252 KB | 391 | 2025-08-27 16:39:51 |
#include<bits/stdc++.h> using namespace std; int z(int x) { if(x==1){ return 0; } for(int i = 2;i<x;i++) { if(x%i==0) { return 0; } } return 1; } int zz(int n){ if(!(z(n/100))&&!(z(n/10%10))&&!(z(n))){ return 1; } else { return 0; } } int main() { for(int i=400;i<=1000;i++){ if(zz(i)){ cout<<i<<endl; } } return 0; }