题解

UVa 10394-Twin Primes

大憨熊 提交于 2020-01-08 13:07:32
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 【 问题描述】 Twin primes are pairs of primes of the form (p, p+2) . The term "twin prime" was coined by Paul Stäckel (1892-1919) . The first few twin primes are (3, 5), (5, 7), (11, 13), (17, 19), (29, 31), (41, 43) . In this problem you are asked to find out the S -th twin prime pair where S is an integer that will be given in the input. Input The input will contain less than 10001 lines of input. Each line contains an integers S (1<=S<=100000) , which is the serial number of a twin prime pair. Input file is terminated by end of file. Output For each line of