fixed test1 and 1st commit of getNumofPrimes