{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cscript type\u003d\u0027text/x-mathjax-config\u0027\u003eMathJax.Hub.Config({tex2jax: { inlineMath: [[\u0027$\u0027,\u0027$\u0027]] } }); \u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027 src\u003d\u0027https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\u0027\u003e\u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027\u003esetTimeout(function(){MathJax.Hub.Queue([\u0027Typeset\u0027, MathJax.Hub, \u0027left_view\u0027]);}, 2000);\u003c/script\u003e\n\u003cdiv class\u003d\"panel_content\"\u003e\n 一个数位素数满足的条件:\n一个素数,且是一个正整数\n各个数位之和为素数\n \u003cbr\u003e \n现有 n(1\u0026lt;\u003dn\u0026lt;\u003d500000)组数据,接下来 n行,一行读入一组数据,每组数据包括 L, R(1\u0026lt;\u003dL,R\u0026lt;\u003d1000000)两个数,请求出闭区间内数位素数的个数。\n\u003c/div\u003e\n\u003cdiv class\u003d\"panel_content\"\u003e\n输入 #1\u003cpre\u003e3\n10 20\n10 100\n100 10000\u003c/pre\u003e\n \u003cbr\u003e \n\u003c/div\u003e\n\u003cdiv class\u003d\"panel_content\"\u003e\n输出 #1:\u003cpre\u003e1\n10\n576\nNote: You should at least use scanf() and printf() to take input and produce output for this\nproblem. cin and cout is too slow for this problem to get it within time limit.\u003c/pre\u003e\n \u003cbr\u003e \n\u003c/div\u003e"}}]}