Work for project euler