added prime generator
better prime generator
solution to problem 3
removing print
add generic prime factor helper fn