From 88d72d2a763df325becd148e3a0b154afee4c90a Mon Sep 17 00:00:00 2001 From: daviddoji Date: Thu, 22 Jul 2021 22:01:56 +0200 Subject: [PATCH] Solution to problem 13 in Julia --- src/Julia/Problem013.jl | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/Julia/Problem013.jl diff --git a/src/Julia/Problem013.jl b/src/Julia/Problem013.jl new file mode 100644 index 0000000..7fec624 --- /dev/null +++ b/src/Julia/Problem013.jl @@ -0,0 +1,27 @@ +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("../Python/files/Problem13.txt"))))[1:10] +end + + +println("Time to evaluate Problem 13:") +@time Problem13() +println("") +println("Result for Problem 13: ", Problem13())