Here's a breakdown:
* Mariner 2 was the first successful Venus flyby in 1962.
* Mariner 4 was the first successful Mars flyby in 1964.
* Mariner 10 was the first successful Mercury flyby in 1974-75.