UVA10174 Couple-Bachelor-Spinster Numbers.

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1115 [PDF](https://uva.onlinejudge.org/external/101/p10174.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10174/08948565b01c287b19b0d80d9c28117bfcd71b8a.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10174/457b088ad2d00bcd0a647fe8c774eaba2b051627.png)

Output Format

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