Personal project euler attempt