We can solve it by using Coulomb's Law,

The electromagnetic force of repulsion between positive protons in the nucleus is overcome by the strong nuclear force between protons and neutrons. This force is larger than the previous one and hence holds the nucleus together.So, these protons not fly apart under this repulsion