First pool solution : project euler