Added modified versions of primefactor and primesum