Problem 5

Used a very smart way, basically since its only from 1 to 20, by prime
factorising whatever is existing you can pretty much get the second last
factor multiplied with 2 to get the final answer, runs twice and runs in
constant time