CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 06:27:36 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=fad157f8dbd419a6dca77cf4885147fea5c7a464d0306511090d9a62f35bcff0a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22vYU2Xo6vE5tj8xKS1wbuuwsKB811z_Ar%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d488446dfbd817-BLR
Project Euler, Problem #1, Haskell - Pastebin.com
SHARE
TWEET

Project Euler, Problem #1, Haskell
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- If we list all the natural numbers below 10 that are multiples of 3
- -- or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find
- -- the sum of all the multiples of 3 or 5 below 1000.
- main :: IO ()
- main = print $ sum [x | x <- [0 .. 999], mod x 3 == 0 || mod x 5 == 0]
- -- 233168
- -- real 0m0,004s
- -- user 0m0,000s
- -- sys 0m0,003s
Advertisement
Add Comment
Please, Sign In to add comment
-
✅ Make $2500 in 20 minutes⭐⭐⭐ H
JavaScript | 7 sec ago | 0.25 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ 9
JavaScript | 9 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ 5
JavaScript | 16 sec ago | 0.25 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ D
JavaScript | 18 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ 5
JavaScript | 18 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ 2
JavaScript | 27 sec ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ E
JavaScript | 28 sec ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ 9
JavaScript | 36 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand