Switching prime check to use ceuler lib function, isPrimeOpt.
Reducing code.