464 afișări BOTOROGEANU ANDREI-PETRU (andrei_botorogeanu) 04.11.2022 www.pbinfo.ro
Etichete: nicio etichetă

#include<bits/stdc++.h>
using namespace std;
int main()
{ int n,uc,on=0,ok=1; cin>>n; while(n>0) { uc=n%10; on=on*10+uc; n/=10; } for(int i=2; i<=on; i++) if(on%i==0) ok=0; if(ok) cout<< “Oglinditul nr. “ << on <<” nu e prim”; else cout<< “Oglinditul nr. “ << on << “ e prim”; return 0;
}


464 afișări BOTOROGEANU ANDREI-PETRU (andrei_botorogeanu) 04.11.2022 www.pbinfo.ro