9 lines
106 B
Ruby
9 lines
106 B
Ruby
|
terms = []
|
||
|
(2..100).each do |a|
|
||
|
(2..100).each do |b|
|
||
|
terms << a**b
|
||
|
end
|
||
|
end
|
||
|
|
||
|
puts terms.uniq.count
|