回文质数(Prime Palindromes)
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
因为 151 即是一个质数又是一个回文数(从左到右和从右到左是看一样的),所以 151 号是回文质数。
写一个程序来找出范围 间的所有回文质数。
Format
Input
第 1 行: 二个整数 a 和 b .
Output
输出一个回文质数的列表,一行一个。
输入样例
5
500
输出样例
5
7
11
101
131
151
181
191
313
353
373
383