Untitled

 avatar
unknown
c_cpp
2 years ago
508 B
6
Indexable
#include <iostream>
using namespace std;

int main()
{
    int count = 0;
    for (int i = 35000000; i <= 40000000; i++) {
        int oddDevidersCount = 0;
        for (int j = 1; j < i/3+1; j++) {
            if (i % j == 0 && j % 2 != 0) {
                //cout << j << ' ';
                oddDevidersCount++;
            }
        }
        if (oddDevidersCount == 5) {
            count++;
            cout << count << ") ";
            cout << i << endl;
        }
    }

    
}
Editor is loading...