attempts at solving project euler problem