GoLang Solution For UVa Online Judge: 10042 - Smith Numbers
GO Solution For UVa 10042 - Smith Numbers. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.
Problem Description
While skimming his phone directory in 1982, Albert Wilansky, a mathematician of Lehigh University, noticed that the telephone number of his brother-in-law H. Smith had the following peculiar property: The sum of the digits of that number was equal to the sum of the digits of the prime factors of tha
...You can find the full details of the problem Smith Numbers at UVa Online Judge
Sample Input
1 4937774
Sample Output
4937775
Solution: Please check the main.go snippet for the solution.
Solution originally posted at: Github by @codingsince1985
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.