problem6
finds the difference between the sum of the squares of the
first 'n' natural numbers and the square of the sum.
problem6(limit)
limit | Limit to run the interval |
---|
The expected value
This function has the following complexity O($n^2$)
https://projecteuler.net/problem=6 for more info about it
problem6(10)#> [1] 2640problem6(20)#> [1] 41230problem6(50)#> [1] 1582700