Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8. int m;
  9. cin >> m;
  10. int temp = m/2;
  11. for(int i = 2; i <= temp; i++)
  12. {
  13. if(m % i == 0)
  14. {
  15. cout << "the number is not dumb" << '\n';
  16. return 0;
  17. }
  18. }
  19. cout << "the number is dumb" << '\n';
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement