You might hate the rent and the rats, but a new Prosperity Index reveals this notorious city is the most viable in the U.S.