UVA13209 My Password is a Palindromic Prime Number

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=878&page=show_problem&problem=5132 [PDF](https://uva.onlinejudge.org/external/132/p13209.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13209/79f6762c35a6b4635b7a763de7c39a97faf945f2.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13209/8f111513edb6485ba3100c5ef52030b9ab491c3f.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13209/46db222c11a9db649a3e9f06f8783a2bc0b59baa.png)