Quite a few great math papers are written by people over 40, despite the flashy age restriction on the Fields Medal.