Add spaces: Participatingdogs:24,22inofficialclasses

Answer: Participating dogs: 24, 22 in official classes

Add spaces: OnnumbertheoryhestudiedavarietyoftopicsincludingWaring'sproblem,Diophantineapproximationandsomeproblemsinalgebraicnumbertheory.

Answer: On number theory he studied a variety of topics including Waring 's problem, Diophantine approximation and some problems in algebraic number theory .

Add spaces: Theoldwarhorse,IsmailSidqi,whohadbeenPrimeMinisterduringthe1930'swasbroughtbacktobePrimeMinisterinthedealingwiththeBritish.

Answer:
The old warhorse, Ismail Sidqi, who had been Prime Minister during the 1930's was brought back to be Prime Minister in the dealing with the British.