There is no statutory age limit. The PM must be a Member of Parliament able to command confidence of the House of Commons. In practice, the youngest was William Pitt the Younger (44 in 1783); the oldest at first appointment was Robert Walpole (77 in 1742).