{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"两个正整数如果最大公约数(GCD)为1,则它们被称为互质。例如,1、3、5、7、9...都与2006互质。\u003cbr\u003e\u003cbr\u003e现在你的任务很简单:对于给定的整数m,找出按升序排序时与m互质的第K个元素。"}},{"title":"输入","value":{"format":"HTML","content":"输入包含多个测试用例。对于每个测试用例,包含两个整数m(1 \u003c\u003d m \u003c\u003d 1000000)、K(1 \u003c\u003d K \u003c\u003d 100000000)。"}},{"title":"输出","value":{"format":"HTML","content":"在一行中输出第K个元素。"}},{"title":"示例","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2006 1\r\n2006 2\r\n2006 3\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\r\n3\r\n5\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}