in reply to Number from given digits puzzle
@NUMS = (1, 3, 4, 6); $TARGET = 24; main(); [download]
Shouldn't that '3' be a '2'?
For the numbers 1, 2, 4 and 6, my brain tells me that (46/2)+1 would do the trick.
No, I don't know how I did that. ;)
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds