Mahinda Rajapakse served as Prime Minister of Sri Lanka from 2004-2005 before becoming President. Chandrika Kumaratunga was President during this period (1994-2005). Ranil Wickremesinghe has been Prime Minister multiple times (1993-1994, 2001-2004, 2015-2018, 2018-2019, 2022-present) but the question appears to reference the mid-2000s context.