Thomas Richard posted a brute force solution to the variant of the IBM "Ponder This" challenge. However, it isn't truly a brute force technique; though the coding is elaborate, the selection is straightforward. Finding the maximum value for that variant is quite easy, it can be done in your head. Here's a straightforward, non-recursive code that returns the maximum number meeting the conditions.

Please Wait...