How to code 5 Digit Binary Adder?

So you're using 15 pins for output? That doesn't leave you much room for input. Do you have 15 current limiting resistors?