| 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])]
result
You may wish to look up the factor command for more details and examples.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.