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/e0001/euler0001.rkt

7 lines
221 B
Racket

#lang typed/racket
(foldl (λ ((x : Nonnegative-Integer)
(y : Nonnegative-Integer))
(if (or (zero? (remainder x 3))
(zero? (remainder x 5)))
(+ x y) y)) 0 (range 1 1000))