Find the product of all positive integral values of $n$ such that $n^2-35n+306= p$ for some prime number $p$. Note that there is at least one such $n$.

Let's think step by step and output the final answer within \boxed{}.
user