euler/crystal/euler006.cr

2 lines
56 B
Crystal
Raw Normal View History

2018-02-23 04:53:01 +00:00
puts (1..100).sum ** 2 - (1..100).map { |n| n * n }.sum