Здравствуйте, имеется код:
#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
int n = 100005, s = 1;
for (int i = 2; i <= n; i++) {
for (int j = 2; j <= n; j++) {
if (i * j == n) {
cout << "(" << s << ")" << endl;
cout << "i = " << i << endl;
cout << "j = " << j << endl;
cout << endl;
s++;
}
}
}
}
Вывод:
(1)
i = 3
j = 33335
(2)
i = 5
j = 20001
(3)
i = 15
j = 6667
(4)
i = 59
j = 1695
(5)
i = 113
j = 885
(6)
i = 177
j = 565
(7)
i = 295
j = 339
(8)
i = 339
j = 295
(9)
i = 565
j = 177
(10)
i = 885
j = 113
(11)
i = 1695
j = 59
(12)
i = 6667
j = 15
(13)
i = 20001
j = 5
(14)
i = 33335
j = 3
(15)
i = 55999
j = 76699
(16)
i = 76699
j = 55999
Но как сюда попали значения (15) и (16)?