Stackoverflow promoted this mathematics question at the right pane from stackexchange mathematics site.
I got curious to see the answers. Turned out that the question was about a specfic case (3!⋅5!⋅7!=n!)
and the answers were for this specfic case too.
From a programmer/programming point of view I wonder what would be the most suffecient algorithm to solve the problem.
We have two situation though. One that the problem always have an answer and the other doesn't.
Input is 3, 5, 7 and output is 10 as in the linked question.
The algorithm would be reasonably straightforward:
In case of a=3, b=5, and c=7 you find the next prime above 7, which is 11, and try all numbers between 7+1 and 11-1, inclusive (i.e. 8, 9, and 10) as candidates for n.