I've written very short brute-force program. It's printed the following results:

Brute-force method. Starting with N=5 and Opt=10
Pass 1: Searching for optimal value...
Found better solution:...