The first step is to find the density of proton or neutron from a reputable source. (Wikipedia’s 1018 kg/m3 is a very rough estimate, it is an order of magnitude rather than a value to be used in calculations.)
NASA’s website gives the density of neutron to be equal to 3.0 × 1027 kg/km3
heasarc.gsfc.nasa.gov/docs/xte/learning_center/ASM/ns.html
The next step is to convert the density to kg/cm3
1 km = 1 × 105 cm, therefore 1 km3 = 1 × 1015 cm3 and
3.0 × 1027 kg/km3 = 3.0 × 1012 kg/cm3
Next we need to find the volume V of the ball given its circumference C
We know that C = 2πR, which means that R = C/2π,
and that V = 4πR3/3
Substituting R = C/(2π) we get
V = 4π(C/2π)3/3 = C3 /(6π2) = 233 /(6π2) cm3 = 205 cm3
Finally we can convert volume to mass using density as a conversion factor.
205 cm3 × 3.0 × 1012 kg/cm3 = 6.2 × 1014 kg
(We only keep 2 significant figures, because both 23 cm and 3.0 × 1027 kg/km3 have 2 significant figures)