function p1()
∈ 1:999 if (x % 3 == 0 || x % 5 == 0)] |> sum
[x for x end;
p1()
233168
function p1()
∈ 1:999 if (x % 3 == 0 || x % 5 == 0)] |> sum
[x for x end;
p1()
233168
using BenchmarkTools;
@benchmark p1()
BenchmarkTools.Trial: 10000 samples with 8 evaluations. Range (min … max): 3.540 μs … 258.099 μs ┊ GC (min … max): 0.00% … 95.67% Time (median): 3.712 μs ┊ GC (median): 0.00% Time (mean ± σ): 4.299 μs ± 5.918 μs ┊ GC (mean ± σ): 4.68% ± 3.41% ▅██▆▄▂▁▁▁▁ ▂▄▅▄▄▃▂▂▃▂▂▁ ▂ ████████████▇▇▆█████████████████▇▇▇▆▇▇███▆▆▅▅▆▆▅▆▄▆▅▄▄▄▅▄▃▄ █ 3.54 μs Histogram: log(frequency) by time 7.05 μs < Memory estimate: 7.61 KiB, allocs estimate: 6.