@foone
In one of my classes (Pascal, IIRC), we had an assignment where we not only had to solve the problem, but we had to do it in the shortest/optimal/most elegant way. (Decompose each of a series of numbers into the sum of not more than three integers. The given range was 3130 to (IIRC) 3150. 78 sets of integers as a result. Yes, that was the entire statement.)