Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int m(int n) {
- int count = 0, res = 1;
- for (int i = 2; i <= n / 2; i++) {
- if (n % i == 0) { count++; res *= i; }
- if (count == 5) { break; }
- }
- if (count == 4) { res *= n; }
- else if (count < 4) { return 0; }
- else { return res; }
- }
- int main() {
- int i = 200000001, count = 0;
- while (count != 5) {
- if (m(i) > 0 && m(i) < i) { count++; cout << m(i) << endl; }
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement