This problem is in Contest(s) below:
Contest 1222:质数
Contest 1249:20250301