Ok, forget primed and unprimed and just think of SR principles. The distance to the star in the Earth frame is 10 LY. However, in the spaceship's frame, the ruler used to measure that distance will be length contracted, so the astronauts will say that they are traveling a shorter distance...