Reminds me of this problem: Two numbers are chosen randomly, both are positive integers smaller than 100. Sandy is told the sum of the numbers, while Peter is told the product of the numbers. Then, this dialog occurs between Sandy and Peter: Peter: I don't know the numbers. Sandy: I don't know the numbers. Peter: I don't know the numbers. Sandy: I don't know the numbers. Peter: I don't know the numbers. Sandy: I don'…
Cutest problem I've ever seen. If anyone still doesn't understand, it basically comes down to removing "unique" products and sum from the possibility space. Here is some python code that might be more revealing https://www.online-python.com/c5nAfLoIqr A code review would be greatly appreciated!
I mean, obviously the extremes get eliminated right away, and then the primes, but then I have to track 10,000 number combinations.