The final playable level is level 20, with the passcode 19094.
Entering 51210 for level 21 triggers the "You Have Won" screen and unlocks all the bonus games, so that is the code you want if you are going straight for the extras.