We construct a family of Brieskorn spheres with a special lattice cohomology structure. Applying the surgery formula in Floer theory, we extend the knot surgery obstruction from the 3-sphere to all integer homology 3-spheres. We prove that for any integer homology 3-sphere Y, there are infinitely many Brieskorn spheres that cannot be obtained by knot surgery in Y.