Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
508 B
2
Indexable
Never
#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;
        }
    }

    
}