Problem1077--回文素数2

1077: 回文素数2

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

  黄嘉琪 提供

桐桐想研究一些范围更大的回文素数(例如131,既是素数又是回文数),你能帮助她吗?

Input

只有一个整数n(2≤n≤10^8)。

Output

输出n范围内的回文素数

Sample Input Copy

1000

Sample Output Copy

2 3 5 7 11 101 131 151 181 191 313 353 373 383 727 757 787 797 919 929 

Source/Category