On 4 October 2009 , George Papandreou , president of the Panhellenic Socialist Movement party and son and grandson of Prime Ministers , 2009 Greek legislative election as the new Prime Minister of Greece , following five years of government under New Democracy leader Kostas Karamanlis , the nephew of long-time Prime Minister and President Konstantinos Karamanlis .