1435: 绝对素数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:74 Solved:44

Description

绝对素数是指本身是素数,其逆序数也是素数的数。例如:1032112301是绝对素数。编写一个程序,求出所有m~nm≥11n≤1000000之间的绝对素数。

Input

两个整数m和n

Output

m~n之间的绝对素数,每个数之间用空格隔开,每行输出10

Sample Input Copy

11 300

Sample Output Copy

11 13 17 31 37 71 73 79 97 101
107 113 131 149 151 157 167 179 181 191
199

Source/Category