To solve problem 3 on project euler
To make it a functioning function