{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"题目大意:给定n和一个大小为m的集合,集合元素为非负整数。为1...n内能被集合里任意一个数整除的数字个数。n\u003c\u003d2^31,m\u003c\u003d10.\n样例位, N\u003d12, M-integer set is {2,3}, so there is another set {2,3,4,6,8,9,10},\n\n"}},{"title":"Input","value":{"format":"HTML","content":"\u0026nbsp;\u0026nbsp;There are a lot of cases. For each case, the first line contains two integers N and M. The follow line contains the M integers, and all of them are different from each other. 0\u0026lt;N\u0026lt;2^31,0\u0026lt;M\u0026lt;\u003d10, and the M integer are non-negative and won’t exceed 20."}},{"title":"Output","value":{"format":"HTML","content":"\u0026nbsp;\u0026nbsp;For each case, output the number."}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e12 2\n2 3\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e7\u003c/pre\u003e"}}]}