added solution for the 6th euler project problem