Who are the ATP/ WTA players who have spent most weeks as world no. 1?

Who are the ATP/ WTA players who have spent most weeks as world no. 1?