in reply to integer partition golf
You can still save 5 chars without changing your logic, but adopting a pair of common golf tricks: