Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 0469436559
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.142 kb
#!/usr/bin/env ruby
# N = 5
N = 100
numbers = []
(2..N).each do |a|
(2..N).each do |b|
numbers << a**b
end
end
p numbers.uniq.size
Jump to Line
Something went wrong with that request. Please try again.