Solve 10140 - Prime Distance.