GO Solution For UVa 10168 - Summation of Four Primes. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Euler proved in one of his classic theorems that prime numbers are infinite in number. But can every number be expressed as a summation of four positive primes? I don’t know the answer. May be you can help!!! I want your solution to be very efficient as I have a 386 machine at home. But the time lim


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

Sample Input


Sample Output

2 2 3 17
2 2 3 29
2 2 5 37

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

Solution originally posted at: Github by @codingsince1985