UVA11610 Reverse Prime

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=78&page=show_problem&problem=2657 [PDF](https://uva.onlinejudge.org/external/116/p11610.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11610/884e47bf3da114e32103fc90a55f64da39607642.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11610/e039d402c75f40f7b894b96a5bca087614c8d610.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11610/7148f7d2e5fbd82c897c22b251b349f2e811d631.png)