分析: 这道题要先用筛法求出10^6以内的素数。。。。我竟然觉得数据太多没用这种方式,然后写出来的代码就运行超时了,呜呜……最后还是用的筛法 Description If a and d are relatively prime positive integers, the arithmetic sequence beginning with a and increasing b
一.题目 Dirichlet's Theorem on Arithmetic Progressions Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 15988 Accepted: 8029 Description If a and d are relatively prime positive integers,