euler/crystal/euler006.cr

2 lines
56 B
Crystal

puts (1..100).sum ** 2 - (1..100).map { |n| n * n }.sum