Sort the polynomials according to whether they are prime or non-prime.

6x³-5x²+2x-14

12-18x²+8x²-12

6x³+9x²+10x + 15

12x²-3x+4x+7