Advertisement
TizzyT

ProjectEuler_16 -TizzyT

Jan 19th, 2015
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.30 KB | None | 0 0
  1. Imports System.Numerics 'My solution to Project Euler Problem 16
  2. Module PowerSum
  3.     Sub Main()
  4.         Dim meh As New BigInteger(2 ^ 1000)
  5.         Dim sum As Integer = 0
  6.         For Each d As Char In meh.ToString : sum += Integer.Parse(d) : Next
  7.         Console.WriteLine(sum)
  8.     End Sub
  9. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement