http://162.105.81.212/JudgeOnline/problem?id=3006
又是一个跟素数有关的题目-_-,
这两天贴那个素数打表模板都不知道贴几次了,囧
题目中最后一句话很有用:
FYI, it is known that the result is always less than 106 (one million) under this input condition.
所以先打表(1-10^6),
然后再逐个判断就OK了
http://162.105.81.212/JudgeOnline/problem?id=3006
又是一个跟素数有关的题目-_-,
这两天贴那个素数打表模板都不知道贴几次了,囧
题目中最后一句话很有用:
FYI, it is known that the result is always less than 106 (one million) under this input condition.
所以先打表(1-10^6),
然后再逐个判断就OK了