UVA12349 Twin Apparent Primes!!

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=278&page=show_problem&problem=3771 [PDF](https://uva.onlinejudge.org/external/123/p12349.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12349/52a7577f4584b8b2b9c742f333ad5ba551efe796.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12349/67f77f393376384c5bffc3e41049b68cfb377286.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12349/5409e117c063c751ccd7daacaf37851d1ddafa35.png)