Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<climits>
- using namespace std;
- void divizor(int n,int &d,int &p)
- {
- for(d=2;d<=n;d++)
- {
- p=0;
- while(n%d==0)
- {
- n=n/d;
- p=p+1;
- }
- if(p!=0) break;
- }
- }
- int main()
- {
- int n,x,d,p;
- cin>>n>>x;
- divizor(n,d,p);
- if(d==2 && p>=x)
- cout<<" Da";
- else
- cout<<"Nu";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement