UVA516 Prime Land

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=457 [PDF](https://uva.onlinejudge.org/external/5/p516.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA516/04cacd3c2f75ce5142f3618e029f41b6e33aad4c.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA516/4763ff99989c11c0b67373b5535ede69a399588d.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA516/184e0f71c2cceb239345b9a17dd83fcdade0d07b.png)