题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=569 此题目可以用筛选法的思想来做,但是用到一个欧拉函数 gcd(1,12)=1,gcd(5,12)=1,gcd(7,12)=1,gcd(11,12)=1, gcd(2,12)=2,gcd(10,12)=2, gcd(3,12)=3,gcd(9,12)=3, gcd(4,12)=4,gcd(8,12)=4, gcd(6,12)=6, gcd(12,12)=12, gcd(1,12)+gc…