Use factor theorem to test factors (#304)

Use factor theorem to test factors (#304)

Test integer values pp to find f(p)=0f(p)=0.