Depends somewhat on what is driving the 5V. I would start with 1K near the input to the computer. If the 5V is capabable of driving more current, you could reduce it if necessary, to say 100 Ohm.
So where is the 5V coming from? is it directly connected to a power source, or is it the...