Untitled
Guest 938 16th Aug, 2022
#include<iostream>
using namespace std;
int main()
{
int n;
bool test =true;
cout<<"Podaj liczbę: ";
cin>>n;
if(n<2){
cout<<"to nie jest licza pierwsza";
test = false;
}
for(int i=2;i<n;i++)
if(n%i==0){
cout<<"to nie jest licza pierwsza"<<endl;
test = false;
break;
}
if(test != false)
cout<<"to jest licza pierwsza";
return 0;
}
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Untitled
Markup | 19 | 17 hours ago
- Untitled
Markup | 25 | 19 hours ago
- Wanted to see what your conviction is on this theme
Markdown | 14 | 20 hours ago
- Untitled
Markup | 66 | 1 day ago
- mega555kf7lsmb54yd6etzginolhxxi4ytdoma2rf77ngq55fhfcnyid.onion
Template Toolkit 2 | 25 | 1 day ago
- Untitled
Markup | 70 | 2 days ago
- Untitled
Markup | 77 | 2 days ago