Sha256: 1ae9e3444e63026c6f58ab60e7fa7eb753455441b0fa7a69fa41ac8d44198212
Contents?: true
Size: 217 Bytes
Versions: 396
Compression:
Stored size: 217 Bytes
Contents
#lang racket (provide perfect-numbers) (define (perfect-numbers n) (filter perfect? (range 1 (add1 n)))) (define (perfect? n) (= (apply + (filter (lambda (x) (zero? (modulo n x))) (range 1 n))) n))
Version data entries
396 entries across 396 versions & 1 rubygems