Let $a$ and $b$ be prime numbers such that $a + b = 10000$. Find the sum of the smallest possible value of $a$ and the largest possible value of $a$.

Let's think step by step and output the final answer within \boxed{}.
user