problem8 finds the 'n' adjacent digits in the 1000-digit number that have the greatest product

problem8(digits)

Arguments

digits

Max number of digits to compute

Value

The expected value

Complexity

This function has the following complexity O($n^2$)

See also

https://projecteuler.net/problem=8 for more info about it

Examples

problem8(2)
#> Error: '../data/problem_8.txt' does not exist in current working directory ('/home/farm/Documents/project-euler/src/r/docs/reference').
problem8(4)
#> Error: '../data/problem_8.txt' does not exist in current working directory ('/home/farm/Documents/project-euler/src/r/docs/reference').
problem8(13)
#> Error: '../data/problem_8.txt' does not exist in current working directory ('/home/farm/Documents/project-euler/src/r/docs/reference').