Added stopwatch and updated IsPrime method