Type: RemoteJudge 1000ms 256MiB

25 GUC-A

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.

25 GUC-A

题目描述

因为 151151 既是一个质数又是一个回文数(从左到右和从右到左是看一样的),所以 151151 是回文质数。

写一个程序来找出范围 [a,b](5a<b100,000,000)[a,b] (5 \le a < b \le 100,000,000)(一亿)间的所有回文质数。

输入格式

第一行输入两个正整数 aabb

输出格式

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

5 500

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

2025ACM寒假第一次训练测试

Not Attended
Status
Done
Rule
XCPC
Problem
8
Start at
2025-1-10 9:00
End at
2025-1-10 12:00
Duration
3 hour(s)
Host
Partic.
41