Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <cmath>
- using namespace std;
- int main()
- {
- int i = 0, start = 700000, pre(0);
- while (i < 5)
- {
- int cnt(0);
- for (int j = 2; j < start; ++j)
- {
- if (start % j == 0)
- {
- cnt++;
- }
- }
- if (cnt > pre)
- {
- cout << start << " " << cnt << '\n';
- pre = cnt;
- i++;
- }
- start++;
- }
- return 0;
- }
Advertisement
RAW Paste Data
Copied
Advertisement