solve project euler p4