[Example 3.5.6] Given that $p$ is a prime number, $r$ is the remainder when $p$ is divided by 210. If $r$ is a composite number and can be expressed as the sum of two perfect squares, find $r$.

保留源文本的换行和格式，直接输出翻译结果。