Naive solution for project euler problem #3 (runs in 10.0s)