ToC-Assignment2 V2.0

Improve isPrime algorithm.