In my previous post, On Programming and David Corbin’s Challenge: “I defy anyone to pick a hardware platform, and programming language; then provide a small (one page) sample of code, and be able to COMPLETELY describe what happens when the code executes.”, I said of my time-wasting FORTRAN program:
PROGRAM MAIN 10 GOTO 10 END
that “The program ran correctly the first time.”
This was my second such program.
Some months earlier, during a discussion about great programming feats during an afternoon tea on the 13th floor of NYU’s Courant Institute of Mathematical Sciences (CIMS), someone mentioned the best coding feat they had ever seen was the work of a graduate student at Cornell. Working solely from the hardware reference manual the student wrote a program of about 5000 lines of assembly language that ran correctly the first time. 
Realizing I had never accomplished this feat, I then went down to the computer center and entered the following program using just three punch cards:
PROGRAM MAIN STOP END
It ran correctly the first time.
I boasted of my prowess at tea the next day.
By the way, I wrote this program before the time-waster.
I wrote both these programs in the late 60’s, and so believe them to be the oldest known programs that meet Corbin’s challenge.
1. Almost all buildings in New York City have no thirteenth floor. CIMS is housed in Warren Weaver Hall. WWH has a thirteenth floor. No mathematician would tolerate its omission.
2. My son Michael is a big fan of Seinfeld. Daughter Jen prefers Friends. I bought her a complete set of episodes, sending her one or two DVD’s each final exam period during her last few semesters at Yale.