Greece's prime minister and skeptical European leaders sought desperately Sunday to overcome their fundamental differences — aiming to produce a tentative agreement to stave off an immediate financial collapse in Greece that would reverberate across the continent.