Turkish prime minister rules out snap elections