Added functions to UsefulFunctions

added primes, addToSieve, and distPrimeFacts functions
updated 'if __name__ ...' section to output text
removed 'problem 40' as solutions should not be available to people who have not written their own.