Prime decomposition: Difference between revisions

(Added Algol W)
Line 760:
 
=={{header|ALGOL W}}==
Algol W procedures can't return arrays, so an array to store the factors in must be passed as a parameter.
<syntaxhighlight lang="algolw">
begin % find the prime decompositionmtion of some integers %
3,044

edits