Question: What town is closest to the castle once owned by the Scottish inventor who invented a military cannon described by Isaac Newton as "destructive to the human species"?

<P0-S0> Jean Claude Jacob was a serf from the Jura Mountains, supposedly 120 years old, who was brought from his native place to figure as "dean of the human race" in Paris at the Festival of the Federation of July 1790. <P0-S1>  Thomas Carlyle wrote of Jacob in :Having seen the Human Species itself, to have seen the 'Dean of the Human Species,' ceased now to be a miracle. <P0-S2>  Such 'Doyen du Genre Humain, Eldest of Men,' had shewn himself there, in these weeks: Jean Claude Jacob, a born Serf, deputed from his native Jura Mountains to thank the National Assembly for enfranchising them. <P0-S3>  On his bleached worn face are ploughed the furrowings of one hundred and twenty years. <P0-S4>  He has heard dim patois-talk, of immortal Grand-Monarch victories; of a burnt Palatinate, as he toiled and moiled to make a little speck of this Earth greener; of Cevennes Dragoonings; of Marlborough going to the war. <P0-S5>  Four generations have bloomed out, and loved and hated, and rustled off: he was forty-six when Louis Fourteenth died. <P0-S6>  The Assembly, as one man, spontaneously rose, and did reverence to the Eldest of the World; old Jean is to take seance among them, honourably, with covered head. <P0-S7>  He gazes feebly there, with his old eyes, on that new wonder-scene; dreamlike to him, and uncertain, wavering amid fragments of old memories and dreams. <P0-S8>  For Time is all growing unsubstantial, dreamlike; Jean's eyes and mind are weary, and about to close, — and open on a far other wonder-scene, which shall be real. <P0-S9>  Patriot Subscription, Royal Pension was got for him, and he returned home glad; but in two months more he left it all, and went on his unknown way. <SEP> <P1-S0> David Gregory (20 December 1625 – 1720) was a Scottish physician and inventor. <P1-S1>  His surname is sometimes spelt as Gregorie, the original Scottish spelling. <P1-S2>  He inherited Kinnairdy Castle in 1664. <P1-S3>  Three of his twenty-nine children became mathematics professors. <P1-S4>  He is credited with inventing a military cannon that Isaac Newton described as "being destructive to the human species". <P1-S5>  Copies and details of the model no longer exist. <P1-S6>  Gregory's use of a barometer to predict farming-related weather conditions led him to be accused of witchcraft by Presbyterian ministers from Aberdeen, although he was never convicted. <SEP> <P2-S0> Kinnairdy Castle is a tower house, having five storeys and a garret, two miles south of Aberchirder, Aberdeenshire, Scotland. <P2-S1>  The alternative name is Old Kinnairdy. <SEP> <P3-S0> The Turing Gateway to Mathematics (TGM) is an Impact Initiative at the University of Cambridge in the UK. <P3-S1>  As a knowledge intermediary for the mathematical sciences, it is overseen by the Isaac Newton Institute (INI) at the Centre for Mathematical Sciences (CMS) adjacent to the Isaac Newton Institute. <P3-S2>  The Turing Gateway to Mathematics is an intermediary for knowledge exchange for both professional and academic users of mathematics. <P3-S3>  Each year the TGM organizes multiple events and workshops that feature expert speakers from various industries, governments and scientific organisations that discuss mathematical technical and models, presented by leaders from diverse backgrounds, such as the health care and finances.