adding solutions for findpopularitems and getNumPrimes