Given the following language:
$$L=\left\{\langle\phi, n\rangle \ \middle|\ \begin{array}{l}\phi\text{ is a satisfiable Boolean formula}\\ \text{written as POS (in CNF form)}\\ \text{and $n$ is a prime number}\end{array}\right\},$$
Prove that L is an NPC language.
This is the first time I'm trying to solve this kind of questions, and I am stuck.
This is what I have so far:
To prove that a language is NPC, I need to prove two things:
1) $L \in \mathrm{NP}$
2) For any $L'\in \mathrm{NP}$, there exists a poly-time reduction from $L'$ to $L$.
To prove (1), can I say that $\phi$ is NP (because we know that SAT is NP), and that $n$ is P (because Prime is P)?
If so, I think that I need to say that $\mathrm{P} \subseteq \mathrm{NP}$ to complete the proof of (1).
What's next?