problem5
finds the smallest positive number that is evenly divisible
by all of the numbers from 1 up to given limit
problem5(limit)
limit | Number to be checking delimiter |
---|
The smallest number
This function has the following complexity O( $n^ 5 2 $ 2 )
https://projecteuler.net/problem=5 for more info about it
problem5(5)#> [1] 12problem5(10)#> [1] 2520problem5(20)#> [1] 232792560