This problem is in Contest(s) below:
Contest 1057:质数系列1
Contest 1215:质数系列1