Login
7 branches 0 tags
Ben (X13/Arch) Added support to FreeBSD to the benchmark script 876b66e 3 years ago 926 Commits
nujel / benchmark / euler1 / main.zuo
#lang zuo

(define [multiple-of-3-or-5? a]
  [or [= 0 [modulo a 3]]
      [= 0 [modulo a 5]]])

(define (test-run i ret)
  (cond ((>= i 10000000) ret)
        (else (test-run (+ 1 i) (if (multiple-of-3-or-5? i) (+ ret i) ret)))))

(alert "The sum is" (test-run 0 0))