To prevent the pasta from sticking together, rinse it under cold water after cooking to stop the cooking process and remove excess starch. Then, toss it with a little olive oil to coat the pasta and prevent it from clumping together.