If natural numbers n + 3 and N + 7 are prime numbers, find the remainder of N divided by 6

If natural numbers n + 3 and N + 7 are prime numbers, find the remainder of N divided by 6

Let's divide n into six categories, n = 6K, n = 6K + 1 When n = 6K, N + 3 = 6K + 3 = 3 (2k + 1) and N + 3 are prime contradictions; when n = 6K + 1, N + 3 = 6K + 4 = 2 (3K + 2) and N + 3 are prime contradictions; when n = 6K + 2, n + 7 = 6K + 9 = 3 (2k + 3) and N + 7 are prime contradictions; when n = 6K + 3