S = 0 n = 10000 for k in 1:n global S S = S + 1/k^2 end S = sum(1/k^2 for k in 1:n) res = S - pi^2/6 |> abs