Problem 29
Ruby
1a = 2
2elems = []
3loop do
4 b = 2
5 if a == 101
6 break
7 end
8 loop do
9 if b == 101
10 break
11 end
12 if elems.include?(a ** b) == false
13 elems.push(a**b)
14 end
15 b += 1
16 end
17 a += 1
18end
19puts elems.size