You asked

What should I check when buying a used prime lens for portraits?

Here is what the site says about that.

From Buying used: Buying used: Cameras and lenses are built to last, and many photographers upgrade often. That makes the used market one of the best ways to afford good gear. A body that's one or two generations old is often most of the camera for a fraction of the price.

From Buying used: What holds its value: Good lenses hold their value far better than bodies. Buying lenses used and selling them later can make trying a focal length almost free, and it's the easiest way into the long lenses for wildlife and sport.

Quoted from this site's pages.

Ask next

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.