Classic Robert Heinlein story. Not sure whether “Jerry” was a chimp.
Another approach would be that of Probability Broach.
Available on line here: http://www.bigheadpress.com/tpbtgn