Details on the Length/Coverage Optimal (LCO) confidence interval for the binomial proportion can be found in the following journal article:
The LCO website contains the R code for the CI algorithm and a full listing of LCO CIs (at 5 decimal places), for n = 1, 2, ..., 100 at the 90, 95, and 99% levels.