{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"We will call a number \"mirror prime\", if it is prime, and the number written in a reverse order is also prime.\r\n\r\nFind the number of \"mirror primes\" from **a** to **b**.\r\n\r\n![prb22](https://static.e-olymp.com/content/1c/1c64fb31b94c748fa1b0e2457655d708244360d8.gif)\r\n\r\n#### Input\r\n\r\nTwo integers **a** and **b** (**1** ≤ **a** ≤ **b** ≤ **10000**).\r\n\r\n#### Output\r\n\r\nPrint the number of \"mirror primes\" from **a** to **b** inclusive."}},{"title":"Example","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\u003e10 25\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}