solution and tests for euler21 working