THeThe point of Tarski's definition is: A sentence s = 'X' is true iff and only if X holds, i.e.if X is a fact.
This principle applies to both your examples. The sentence '7 is a prime' is true if and only if it is a fact, that 7 is a prime. And the latter holds because the number 7 is divisible only by 1 and itself - which is a fact too.