Use benchmark macro

This commit is contained in:
David Doblas Jiménez 2021-09-28 10:18:31 +02:00
parent e5f7e47213
commit 34fd8531d9

View File

@ -1,4 +1,4 @@
#=
#=
Created on 15 Jun 2021
@author: David Doblas Jiménez
@ -8,8 +8,10 @@ Solution for Problem 3 of Project Euler
https://projecteuler.net/problem=3
=#
using BenchmarkTools
function Problem3()
#=
#=
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
@ -29,6 +31,6 @@ end
println("Time to evaluate Problem 3:")
@time Problem3()
@btime Problem3()
println("")
println("Result for Problem 3: ", Problem3())