Faster solution and all x > 0.