Factors of an integer: Difference between revisions

(added Ursala)
Line 140:
 
=={{header|Ursala}}==
Filter the sequence of numbers from 1 to n according to divisibility by n.
<lang Ursala>
#import std
#import nat
 
factors "n" = (~| not remainder)^lrtPlNCTX/"n")*~&@t iota successor "n"
</lang>
test program:
Anonymous user