(In reply to
maybe a soln..... by Steven Lord)
It looks as if you're not counting students but rather pairs of students, as for any combination of i, j and k, you're finding several sets of i1, j1, and k1.
Beyond that, the program only assures that one of the two students' numbers does not divide into the other. It doesn't insure that no student from any other pair would be the GCD the the pair being tested.
I'm sure the true number is much less.
|
Posted by Charlie
on 2019-11-13 15:04:33 |