Factors of an integer: Difference between revisions

updated FunL
(→‎{{header|Perl 6}}: adding a naive yet short version)
(updated FunL)
Line 912:
 
Test:
<lang funl>importfor util.rndx <- [103, 316, 519, 639, 760]
 
for x <- [103, 316, 519, 639, 760]
println( 'The set of factors of ' + x + ' is ' + factors(x) )</lang>
Anonymous user