I am trying to implement a function primeFac() that takes as input a positive integer n and returns a list containing all the numbers in the prime
primeFac()
n
The primefac module does factorizations with all the fancy techniques mathematicians have developed over the centuries:
#!python import primefac import sys n = int( sys.argv[1] ) factors = list( primefac.primefac(n) ) print '\n'.join(map(str, factors))