Hint $ $ If $\,N = 3n+2\,$ has no prime factors of form $\,3k+2,\,$ then all prime factors must have form $\,3k+1,\,$ hence their product $\,N\,$ has form $\,3k+1,\,$ contra $\,N = 3n+2.$
Generally any factorization of an integer $\not\equiv 1\!\pmod{\!m}\,$ must include a factor $\not\equiv 1\!\pmod{\!m}\,$ simply because integers $ \equiv 1\!\pmod{\!m}\,$ are closed under multiplication (form a monoid). Similarly for other sets of integers closed under multiplication. Consider the set T of integers divisible by $10,\,$ i.e. those with unit digit $= 0.\,$ Any factorization of an integer $\,n\not\in T\,$ must include a factor $\not\in T,\,$ else all factors have unit digit $= 0\,$ thus so too does their product $\,n,\,$ i.e. $\,n\in T,\,$ contra hypothesis. Similarly, one could let $\,T\,$ be all powers of $\,10,\,$ etc. This property of factors of elements in the complement of $T$ is just an equivalent complementary restatement of the closure of $T$ under multiplication.
See also this post on the complementary view of subgroups, which generalizes: integer $\times$ noninteger = noninteger; $\ $ rational $\times$ irrational = irrational, etc.