If you are talking about bare survival a baby is viable at 24 weeks so as someone said above 50% of babies born at 24 weeks would live BUT a baby born that early is very likely to have complications, some of which can be long term, very serious and/or last his whole life.
I read somewhere that at 34 weeks 99% of babies not only survive but shouldn't have long term complications either.