defined factoring function..utilizing short list of primes stolen from the internet..