Distinct power numbers: Difference between revisions

Added Sidef
m (→‎{{header|Phix}}: petty bugfix: default delim of " " of join was inserting spaces/32, not that you could tell. Replaced with "" (empty string).)
(Added Sidef)
Line 484:
Found 15 numbers
done...
</pre>
 
=={{header|Sidef}}==
<lang ruby>[2..5]*2 -> cartesian.map_2d {|a,b| a**b }.sort.uniq.say</lang>
{{out}}
<pre>
[4, 8, 9, 16, 25, 27, 32, 64, 81, 125, 243, 256, 625, 1024, 3125]
</pre>
 
2,747

edits