Noticed these two patterns while playing with Euler's totient function $\varphi(n)$ and primes:
$$\text{For } n \text{ even}, \text{ if } \varphi(n) = \frac{n-2}{2} \text{ then } \frac{n}{2} \text{ is prime.}$$
$$\text{For } n \text{ odd}, \text{ if } \varphi(n) = \frac{2n-6}{3} \text{ then } \frac{n}{3} \text{ is prime.}$$
Question
Are those known patterns? I searched but couldn't find anything similar.