Question: how long would it take to get to the andromeda galaxy at the speed of light?
Answer: Forget it! Although it may be one of the closest galaxies to our own, since the Andromeda Galaxy is 2.5 million light years distant it would take 2.5 million years to get there if (and it's a huge 'if') we could travel at the speed of light.