Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int cnt = 0, min = 0;
- for (int i = 8185; i >= 6391; i--) {
- if ((i % 11 == 0 || i % 17 == 0) && i % 2 != 0 && i % 13 != 0
- && i % 14 != 0 && i % 34 != 0) {
- cnt++;
- min = i;
- }
- }
- cout << cnt << endl << min;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement