solves euler project 1