Newton had long friendships with other leading intellectual figures (Edmund Halley, John Locke, mathematician David Gregory).