Myanmar is set to free hundreds of prisoners Thursday, officials said, just days ahead of a landmark visit by US President Barack Obama to a country emerging from decades of military rule.