This problem is in Contest(s) below:
Contest 1974:语法提高-函数-(1)自定义函数
Contest 1848:素数
Contest 1832:2024语言基础班第六天
Contest 1926:循环复习2