Files
project-euler/src/Julia/Problem013.jl
2021-07-24 10:22:07 +02:00

28 lines
551 B
Julia

using Base: String
#=
Created on 22 Jul 2021
@author: David Doblas Jiménez
@email: daviddoji@pm.me
Solution for Problem 13 of Project Euler
https://projecteuler.net/problem=13
=#
using DoubleFloats
# using JSON
function Problem13()
#=
Work out the first ten digits of the sum of the following one-hundred
50-digit numbers
=#
return string(sum(parse.(BigInt,readlines("../files/Problem13.txt"))))[1:10]
end
println("Time to evaluate Problem 13:")
@time Problem13()
println("")
println("Result for Problem 13: ", Problem13())