GO Solution For UVa 10394 - Twin Primes. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Twin primes are pairs of primes of the form (p, p+2). The term “twin prime” was coined by Paul Stckel (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

...

You can find the full details of the problem Twin Primes at UVa Online Judge

Sample Input

1
2
3
4

Sample Output

(3, 5)
(5, 7)
(11, 13)
(17, 19)

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985