GO Solution For UVa 10311 - Goldbach and Euler. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

That every number which is resolvable into two prime numbers can be resolved into as many prime numbers as you like, can be illustrated and confirmed by an observation which you have formerly communicated to me, namely that every even number is a sum of two primes, and since n− 2) is also a sum of t


You can find the full details of the problem Goldbach and Euler at UVa Online Judge

Sample Input


Sample Output

11 is not the sum of two primes!
12 is the sum of 5 and 7.

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

Solution originally posted at: Github by @codingsince1985