Advertisement
_takumi

num17.1

Oct 22nd, 2020
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int cnt = 0, min = 0;
  6.     for (int i = 8185; i >= 6391; i--) {
  7.         if ((i % 11 == 0 || i % 17 == 0) && i % 2 != 0 && i % 13 != 0
  8.             && i % 14 != 0 && i % 34 != 0) {
  9.             cnt++;
  10.             min = i;
  11.         }
  12.     }
  13.     cout << cnt << endl << min;
  14.    
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement