Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
2 lines (1 sloc) 103 Bytes
puts ((1..100).inject(0) {|s,n| s += n})**2 - ((1..100).collect {|x| x**2}.inject(0) { |s,n| s += n} )