Phi(n,x) = nth cyclotomic polynomial evaluated at x. All tested with Mathematica PrimeQ function.
To be completed...