answered 8 years ago
I don't know of a direct command. Here is one option, though.
F= factor(2016) result=[f[0] for f in F for i in range(f[1])] result
You may wish to look up the factor command for more details and examples.