I'm trying to find if a number is ordinary or not using inputs. A positive integer is ordinary if it has at least two pairs of positive integer factors such that the difference of one pair equals the sum of the other pair.
For example, 6 is ordinary since 6×1=6,2×3=6,6−1=2+3; and 24 is also ordinary since 12−2=6+4. I'm stuck on how to make a code where it "grabs" a specific match of the factors of a number.
Thanks :)