Switching prime check function to use ceuler lib function isPrimeOpt.
Reduced calculation time form 45 seconds to .3 seconds.
Cleaning up code.