added timing stuff and prime algorithm.