another euler task solution