This is a pun on the phrase 'past it's prime' which means no longer as good at something as one once was. But 'pasta' is used in there because it sounds similar to 'past' and because spaghetti is a type of pasta
Leftover spaghetti is pasta its prime .