Untitled
Guest 896 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*i<=n;i++)
if(n%i==0){
cout<<"to nie jest licza pierwsza"<<endl;
test = false;
}
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 | 15 | 4 hours ago
- Untitled
Markup | 22 | 7 hours ago
- Wanted to see what your conviction is on this theme
Markdown | 12 | 7 hours ago
- Untitled
Markup | 57 | 1 day ago
- mega555kf7lsmb54yd6etzginolhxxi4ytdoma2rf77ngq55fhfcnyid.onion
Template Toolkit 2 | 24 | 1 day ago
- Untitled
Markup | 67 | 2 days ago
- Untitled
Markup | 69 | 2 days ago