Solving some problems on projecteuler.net