This problem is in Contest(s) below:
Contest 6068:基础B-第7课-课堂练习(童)
Contest 6074:基础B-第7课-课堂练习(崔)
Contest 6020:AK张老师语法中级D班 质数 穷举法 家庭作业