C. 回文质数(Prime Palindromes)

    Type: Default 1000ms 256MiB

回文质数(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 号是回文质数。
写一个程序来找出范围 [a,b](5a;b100,000,000) [a,b] (5 \leq a; b \leq 100,000,000) 间的所有回文质数。

Format

Input

第 1 行: 二个整数 a 和 b .

Output

输出一个回文质数的列表,一行一个。

输入样例

5 
500

输出样例

5
7
11
101
131
151
181
191
313
353
373
383

第19课——指针

Not Claimed
Status
Done
Problem
7
Open Since
2024-3-1 0:00
Deadline
2024-3-31 23:59
Extension
24 hour(s)