This repository has been archived on 2024-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
project-euler/e0006/euler0006.rkt

4 lines
121 B
Racket
Raw Normal View History

#lang racket
(- (* (apply + (range 1 101)) (apply + (range 1 101)))
(foldl + 0 (map (λ (x) (* x x)) (range 1 101))))