Let \(p,q,a\) be real numbers such that \(p^{2}+q^{2}-2p=0\) , then the minimum value of \[\sqrt{p^{2}+q^{2}+2a^{2}+16-2ap-8a-8q+2aq}\]
is
\[\frac{m}{\sqrt{e}}-d\]
where \(m,e\) are prime numbers and \(d\) is a positive integer . Find \(m+e+d\).

Excel in math and science

Master concepts by solving fun, challenging problems.

It's hard to learn from lectures and videos

Learn more effectively through short, interactive explorations.

Used and loved by over 6 million people

Learn from a vibrant community of students and enthusiasts,
including olympiad champions, researchers, and professionals.

Your answer seems reasonable.
Find out if you're right!