I think that stackoverflow is rendering me even lazier than usual, but...
The problem is simpler than knapsack (or a type of it, without values and only positive weights). It consists on checking if a number can be a combination of others, and the function shall return true or false.
Ex: 112 and a list with { 17, 100, 101 } should return false, 469 with the same list should return true, 35 should return false, 119 true, etc...
Any ideas? Thanks!
Edit: subset sum problem would be more accurate for this than knapsack.