another version of problem 12 project euler, the more standard method. Previous method is a little faster still