I sat an exam in high school where we had to hand write code for... Either a Mandelbrot set generator or some prime search thing, can't remember.
But it was a simple algorithm and it didn't specify a language so I wrote it in 386 assembler. I think that to this day is the only program I wrote by hand, and I know it compiled and ran correctly as they made me type it and execute it (only for fun they knew I knew what I was doing)