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

@ -8,6 +8,8 @@ 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.
@ -29,6 +31,6 @@ end
println("Time to evaluate Problem 3:")
@time Problem3()
@btime Problem3()
println("")
println("Result for Problem 3: ", Problem3())