577 is a prime number, but it's possible to have ratios fully reduced where both sides are still non-prime. If the first part of the ratio wasn't divisible by 7 as well a prime number calculator wouldn't work.
Dividing both parts of the ratio by the greatest common divisor of 7000 and 4039 (
calculator) is the way to go. The GCD in this case is 7.