Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
;; Finding perfect numbers
|
||||
(define (sum/inv n) ;; look for div's in [2..sqrt(n)] and add 1/n
|
||||
(for/fold (acc (/ n)) [(i (in-range 2 (sqrt n)))]
|
||||
#:break (> acc 1) ; no hope
|
||||
(when (zero? (modulo n i ))
|
||||
(set! acc (+ acc (/ i) (/ i n))))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue