Age, prostate-specific antigen (PSA) density (PSAD), systemic immune-inflammation index, cystatin C level, and the Prostate Imaging Reporting and Data System (PI-RADS) v2.1 score were significant predictors of prostate cancer (PCa) on multivariable logistic regression analyses (P < 0.05) and the five parameters were used to construct the XYFY nomogram. Here, CST3 is linked to prostate cancer.