1163: [枚举]palindrome回文素数

Memory Limit:128 MB Time Limit:10.000 S
Judge Style:Text Compare Creator:
Submit:136 Solved:4

Description

给出 A,B,小于10^9
输出 A到B之间所有回文素数的个数

Input

第一行:整数A
第二行:整数B(A,B<10^9)

Output

整数C,表示[A,B]内的回文素数个数

Sample Input Copy

11
543

Sample Output Copy

10

Source/Category