Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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])]

You may wish to look up the factor command for more details and examples.